[1/2] gdiplus: Don't include rotated fonts in the installed font collection.

Vincent Povirk madewokherd at gmail.com
Thu Dec 1 13:08:11 CST 2016


From: Vincent Povirk <vincent at codeweavers.com>

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 dlls/gdiplus/font.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 63eaed2..ed0499d 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -1604,6 +1604,10 @@ static INT CALLBACK add_font_proc(const LOGFONTW *lfw, const TEXTMETRICW *ntm,
     if (type == RASTER_FONTTYPE)
         return 1;
 
+    /* skip rotated fonts */
+    if (lfw->lfFaceName[0] == '@')
+        return 1;
+
     /* skip duplicates */
     for (i=0; i<fonts->count; i++)
         if (strcmpiW(lfw->lfFaceName, fonts->FontFamilies[i]->FamilyName) == 0)
-- 
2.7.4




More information about the wine-patches mailing list