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

Alexandre Julliard julliard at winehq.org
Wed Dec 3 05:56:43 CST 2008


Module: wine
Branch: master
Commit: c0c852247f79042de59ba16e89338613af985f8d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c0c852247f79042de59ba16e89338613af985f8d

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue Dec  2 08:51:05 2008 -0600

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.

---

 dlls/gdi32/freetype.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 9e3ec02..2894dca 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -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)




More information about the wine-cvs mailing list