http://bugs.winehq.org/show_bug.cgi?id=18044
Summary: System Font Linking fails with MS Shell Dlg Product: Wine Version: 1.1.19 Platform: All OS/Version: All Status: UNCONFIRMED Severity: trivial Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: Paul.Hampson@Pobox.com
If MS Shell Dlg (or presumably any other font named in HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes is used to render text, the system font linking support provided by HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink fails.
What happens is that the substitution list in SystemLink is stored by real font name, such that putting an entry for MS Shell Dlg in that list will actually store an entry in the system_links list (in gdi32/freetype.c) for the font that points to (Tahoma under en-US codepage). This means it is possible to have two entrys for one real font in this list, as it happens.
However, when create_child_font_list (also in gdi32/freetype.c) goes searching for entries in system_links, it searches by virtual name (ie MS Shell Dlg if that is what the program asked for) and so fails to find any matches.
This causes get_glyph_index_linked to not have any children to search, and hence return FALSE, causing the glyphs in question to be replaced with glyph 0.
This affects uTorrent 1.8. uTorrent 1.7 used Tahoma as its GUI font, so simply enabling SystemLink for Tahoma (as per bug 10864 comment 4) would allow non-local-codepage characters to display correctly. Under uTorrent 1.8 however, this fails.
It looks to me like the problem is that create_child_font_list should be searching the system_links list by real font name, not virtual font name, for best consistency with Windows.
http://bugs.winehq.org/show_bug.cgi?id=18044
--- Comment #1 from Paul "TBBle" Hampson Paul.Hampson@Pobox.com 2009-04-14 05:58:51 --- I forgot to mention that this affects uTorrent (for example) when using a torrent file with Japanese characters in the filename or the filenames of the contents in a non-Japanese locale, and this works fine under Windows.
http://bugs.winehq.org/show_bug.cgi?id=18044
Michal Suchanek hramrach@centrum.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hramrach@centrum.cz
http://bugs.winehq.org/show_bug.cgi?id=18044
David Oram ryugawa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ryugawa@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=18044
--- Comment #2 from Paul "TBBle" Hampson Paul.Hampson@Pobox.com 2009-04-14 09:18:54 --- I've posted a proposed patch to wine-patches at http://www.winehq.org/pipermail/wine-patches/2009-April/071833.html and a patch for the other issue I noticed (two entries for one real font) at http://www.winehq.org/pipermail/wine-patches/2009-April/071832.html.
http://bugs.winehq.org/show_bug.cgi?id=18044
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|All |other Platform|All |Other
http://bugs.winehq.org/show_bug.cgi?id=18044
Michal Suchanek hramrach@centrum.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |11281
http://bugs.winehq.org/show_bug.cgi?id=18044
Paul "TBBle" Hampson Paul.Hampson@Pobox.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|11281 |
http://bugs.winehq.org/show_bug.cgi?id=18044
--- Comment #3 from Lei Zhang thestig@google.com 2009-05-06 22:58:45 --- Patches committed:
http://www.winehq.org/pipermail/wine-cvs/2009-May/055139.html http://www.winehq.org/pipermail/wine-cvs/2009-May/055140.html
please retest and mark as fixed if that's the case.
http://bugs.winehq.org/show_bug.cgi?id=18044
--- Comment #4 from Paul "TBBle" Hampson Paul.Hampson@Pobox.com 2009-05-09 13:06:14 --- I'm waiting on successful feedback from the person who originally pointed the problem out to me.
http://bugs.winehq.org/show_bug.cgi?id=18044
Paul "TBBle" Hampson Paul.Hampson@Pobox.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #5 from Paul "TBBle" Hampson Paul.Hampson@Pobox.com 2009-05-10 06:57:36 --- Fixed in 1.1.21 by commit 8a4b77883e4ddcd2160a1e05da17ac459b793b73
http://source.winehq.org/git/wine.git/?a=commit;h=8a4b77883e4ddcd2160a1e05da...
http://bugs.winehq.org/show_bug.cgi?id=18044
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2009-05-22 11:17:08 --- Closing bugs fixed in 1.1.22.