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

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vincent Povirk 2016-12-01 13:08:11 -06:00 committed by Alexandre Julliard
parent d0039106de
commit 0d6a4b06f9
1 changed files with 4 additions and 0 deletions

View File

@ -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)