Vincent Povirk : gdiplus: Don' t include rotated fonts in the installed font collection.

Alexandre Julliard julliard at winehq.org
Fri Dec 2 17:00:09 CST 2016


Module: wine
Branch: master
Commit: 0d6a4b06f96da1027e564e99e37f773b0975803b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0d6a4b06f96da1027e564e99e37f773b0975803b

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Dec  1 13:08:11 2016 -0600

gdiplus: Don't include rotated fonts in the installed font collection.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)




More information about the wine-cvs mailing list