Aric Stewart : gdi32: Ensure child fonts have names.
Alexandre Julliard
julliard at winehq.org
Mon Aug 3 11:15:28 CDT 2009
Module: wine
Branch: master
Commit: 7214f650efee93e00b76a41cb674ce1c7fb71316
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7214f650efee93e00b76a41cb674ce1c7fb71316
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Jul 31 10:44:20 2009 -0500
gdi32: Ensure child fonts have names.
---
dlls/gdi32/freetype.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index b5ab51a..4723be9 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -5804,6 +5804,7 @@ static BOOL load_child_font(GdiFont *font, CHILD_FONT *child)
child->font->scale_y = font->scale_y;
hfontlist = HeapAlloc(GetProcessHeap(), 0, sizeof(*hfontlist));
hfontlist->hfont = CreateFontIndirectW(&font->font_desc.lf);
+ child->font->name = strdupW(child->face->family->FamilyName);
list_add_head(&child->font->hfontlist, &hfontlist->entry);
child->font->base_font = font;
list_add_head(&child_font_list, &child->font->entry);
More information about the wine-cvs
mailing list