mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
gdi32: Ensure child fonts have names.
This commit is contained in:
parent
05c730fd4c
commit
7214f650ef
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user