gdi32: Keep track of the english family name if there's a localised name as well.

This commit is contained in:
Huw Davies 2011-10-06 16:26:04 -05:00 committed by Alexandre Julliard
parent 8899c2e59a
commit ab1373d847
1 changed files with 2 additions and 0 deletions

View File

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