gdi32: Ensure child fonts have names.

This commit is contained in:
Aric Stewart 2009-07-31 10:44:20 -05:00 committed by Alexandre Julliard
parent 05c730fd4c
commit 7214f650ef

View File

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