Commit c0c85224 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

gdi32: Use the substitute name, if it exists, when looking for font system links.

Allows double indirection MS ShellDlg -> MS UI Gothic linked to system gothic to work as expected.
parent 110a6048
......@@ -3434,7 +3434,8 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
*/
LIST_FOR_EACH_ENTRY(font_link, &system_links, SYSTEM_LINKS, entry)
{
if(!strcmpiW(font_link->font_name, FaceName))
if(!strcmpiW(font_link->font_name, FaceName) ||
(psub && !strcmpiW(font_link->font_name,psub->to.name)))
{
TRACE("found entry in system list\n");
LIST_FOR_EACH_ENTRY(font_link_entry, &font_link->links, 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