From ab1373d84710350d73131c993afdc08acbab5bdb Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 6 Oct 2011 16:26:04 -0500 Subject: [PATCH] gdi32: Keep track of the english family name if there's a localised name as well. --- dlls/gdi32/freetype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 81c704b911..ae8ca4113b 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -282,6 +282,7 @@ typedef struct tagFace { typedef struct tagFamily { struct list entry; const WCHAR *FamilyName; + const WCHAR *EnglishName; struct list faces; } Family; @@ -1378,6 +1379,7 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_ if(!family) { family = HeapAlloc(GetProcessHeap(), 0, sizeof(*family)); family->FamilyName = strdupW(localised_family ? localised_family : english_family); + family->EnglishName = localised_family ? strdupW(english_family) : NULL; list_init(&family->faces); list_add_tail(&font_list, &family->entry); -- 2.32.0.93.g670b81a890