From f884331d563548aa6879a24835f20f813b490c47 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 2 Mar 2006 21:16:13 +0000 Subject: bug 1441767: allow device fonts (eg opentype with postscript outlines or plain postscript) to be instantiated by the font engine (bzr r197) --- src/libnrtype/FontInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp index 190bbb19f..01d008181 100644 --- a/src/libnrtype/FontInstance.cpp +++ b/src/libnrtype/FontInstance.cpp @@ -384,7 +384,7 @@ bool font_instance::IsOutlineFont(void) InitTheFace(); #ifdef USE_PANGO_WIN32 TEXTMETRIC tm; - return GetTextMetrics(daddy->hScreenDC,&tm) && tm.tmPitchAndFamily&TMPF_TRUETYPE; + return GetTextMetrics(daddy->hScreenDC,&tm) && tm.tmPitchAndFamily&(TMPF_TRUETYPE|TMPF_DEVICE); #else return FT_IS_SCALABLE(theFace); #endif -- cgit v1.2.3