Commit 7214f650 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

gdi32: Ensure child fonts have names.

parent 05c730fd
...@@ -5804,6 +5804,7 @@ static BOOL load_child_font(GdiFont *font, CHILD_FONT *child) ...@@ -5804,6 +5804,7 @@ static BOOL load_child_font(GdiFont *font, CHILD_FONT *child)
child->font->scale_y = font->scale_y; child->font->scale_y = font->scale_y;
hfontlist = HeapAlloc(GetProcessHeap(), 0, sizeof(*hfontlist)); hfontlist = HeapAlloc(GetProcessHeap(), 0, sizeof(*hfontlist));
hfontlist->hfont = CreateFontIndirectW(&font->font_desc.lf); hfontlist->hfont = CreateFontIndirectW(&font->font_desc.lf);
child->font->name = strdupW(child->face->family->FamilyName);
list_add_head(&child->font->hfontlist, &hfontlist->entry); list_add_head(&child->font->hfontlist, &hfontlist->entry);
child->font->base_font = font; child->font->base_font = font;
list_add_head(&child_font_list, &child->font->entry); list_add_head(&child_font_list, &child->font->entry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment