[PATCH] gdi32: Use font substitution for source font when linking fonts.

Lei Zhang thestig at google.com
Tue Dec 9 12:44:42 CST 2008

On Fri, Dec 5, 2008 at 4:46 PM, Lei Zhang <thestig at google.com> wrote:
> Hi,
> This is sort of related to bug 16325. I've noticed some applications
> use the "MS Shell Dlg" font to display CJK text and fails.
> In HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes,
> MS Shell Dlg is set to Tahoma.
> I tried adding a font link for Tahoma in
> HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontLink\Systemlink,
> but that didn't seem to help. I then tried adding a font link for MS
> Shell Dlg, but that didn't have any effect either.
> Taking a closer look, in init_system_links(), both the Tahoma and MS
> Shell Dlg entries in Systemlink create a Tahoma entry in memory, due
> to the MS Shell Dlg -> Tahoma font substitution. However, in
> create_child_font_list(), we check the in-memory list for MS Shell
> Dlg, which can never be found.
> With this additional font substitution, create_child_font_list() looks
> for Tahoma instead, and the CJK text gets displayed properly.

Anything wrong with this patch?

More information about the wine-devel mailing list