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

Alexandre Julliard julliard at winehq.org
Thu Oct 6 17:24:31 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Oct  6 16:26:04 2011 -0500

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

---

 dlls/gdi32/freetype.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 81c704b..ae8ca41 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);
 




More information about the wine-cvs mailing list