From 7214f650efee93e00b76a41cb674ce1c7fb71316 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Fri, 31 Jul 2009 10:44:20 -0500 Subject: [PATCH] gdi32: Ensure child fonts have names. --- dlls/gdi32/freetype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index b5ab51a4cb..4723be975e 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);