gdi32: Child fonts need to be scaled like their parent. With input from Dmitry Timoshkov.
This commit is contained in:
parent
3d962e27ed
commit
1ce79f87dd
|
@ -4497,6 +4497,7 @@ static BOOL load_child_font(GdiFont *font, CHILD_FONT *child)
|
||||||
|
|
||||||
child->font->ntmFlags = child->face->ntmFlags;
|
child->font->ntmFlags = child->face->ntmFlags;
|
||||||
child->font->orientation = font->orientation;
|
child->font->orientation = font->orientation;
|
||||||
|
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);
|
||||||
list_add_head(&child->font->hfontlist, &hfontlist->entry);
|
list_add_head(&child->font->hfontlist, &hfontlist->entry);
|
||||||
|
|
Loading…
Reference in New Issue