From 12214b32eca96826d1f77672779417d6a206836b Mon Sep 17 00:00:00 2001 From: cyreve Date: Thu, 2 Mar 2006 21:16:13 +0000 Subject: [PATCH] bug 1441767: allow device fonts (eg opentype with postscript outlines or plain postscript) to be instantiated by the font engine --- src/libnrtype/FontInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2