[Bug 51685] In Wine gdiplus:font fails to find "MS Shell Dlg" in Arabic, Japanese and Chinese locales
WineHQ Bugzilla
wine-bugs at winehq.org
Thu Aug 26 07:41:59 CDT 2021
https://bugs.winehq.org/show_bug.cgi?id=51685
François Gouget <fgouget at codeweavers.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |source, testcase
--- Comment #1 from François Gouget <fgouget at codeweavers.com> ---
As is probably obvious to specialists, I think the cause of the failure is the
selection of the "MS Shell Dlg" substitute:
LANG=ar_MA.UTF-8 picks "Microsoft Sans Serif" as the substitute and fails:
005c:trace:font:load_gdi_font_subst Got L"MS Shell Dlg"=L"Microsoft Sans
Serif"
005c:trace:font:load_gdi_font_subst Got L"MS Shell Dlg 2"=L"Tahoma"
...
0034:trace:font:load_system_links L"Microsoft Sans Serif": L"MSGOTHIC.TTC,MS
UI Gothic"
0034:trace:font:find_face_from_filename looking for file L"MSGOTHIC.TTC" name
L"MS UI Gothic"
I don't have any "*msgothic*" file so I don't think I have the "MS UI Gothic"
font (and find_face_from_filename() does not find it).
LANG=ja_JP.UTF-8 picks "MS UI Gothic" as the substitute and fails:
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg"=L"MS UI Gothic"
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg 2"=L"Tahoma"
Still no "*msgothic*" file...
LANG=zh_CN.UTF-8 picks "SimSun" as the substitute and fails:
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg"=L"SimSun"
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg 2"=L"Tahoma"
It then goes looking for a "SIMSUN.TTC" file which I don't have.
LANG=(en_US|fr_FR|de_DE).UTF-8 pick Tahoma as the substitute and succeed:
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg"=L"Tahoma"
0034:trace:font:load_gdi_font_subst Got L"MS Shell Dlg 2"=L"Tahoma"
So it looks like the issue is Wine picks a nonexistent font as the substitute
for "MS Shell Dlg". Is there some open-source font I'm missing for these
locales? Or at least some freely redistributable one?
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list