Code

bug 1441767: allow device fonts (eg opentype with postscript outlines or plain postsc...
authorcyreve <cyreve@users.sourceforge.net>
Thu, 2 Mar 2006 21:16:13 +0000 (21:16 +0000)
committercyreve <cyreve@users.sourceforge.net>
Thu, 2 Mar 2006 21:16:13 +0000 (21:16 +0000)
src/libnrtype/FontInstance.cpp

index 190bbb19fa8822bccdbceda4fa76a6e7fb93eb3e..01d0081819e75e3a481c9396ba48eaa511a2f89c 100644 (file)
@@ -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