[Bug 59092] New: Unicode win32 labels displayed as tofu
http://bugs.winehq.org/show_bug.cgi?id=59092 Bug ID: 59092 Summary: Unicode win32 labels displayed as tofu Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: dwrite Assignee: wine-bugs(a)list.winehq.org Reporter: navidmafi2006(a)gmail.com Distribution: --- Created attachment 79882 --> http://bugs.winehq.org/attachment.cgi?id=79882 MCVE for the unicode messagebox issue Summary: Unicode does not render correctly in message boxes and some other win32 labels even with all Segoe fonts copied from a Windows install. A brief MCVE is attached (source-encoding-agnostic) that shows the problem by rendering a message box. Of course it renders just fine on Windows 10. I originally encountered this when a Cheat Engine cheat table used Unicode headers and emojis for purely aesthetic purposes. Take for example the symbol "????" which is U+1D412: MATHEMATICAL BOLD CAPITAL S I could find out that the only font in a proper Windows install that *does* include that character is `seguisym.ttf`. I used such one liner to confirm this: ``` python3 -c "from fontTools.ttLib import TTFont; import sys; cmap=TTFont(sys.argv[1]).getBestCmap(); print(cmap.get(0x1D412,'MISSING'))" EXAMPLEFONT.ttf ``` Thus, as a workaround, I copied all seg* fonts to my /usr/share/fonts from a Windows install, did a `wineboot -u`, and then tried using the following crude registry modification to force the symbol font. As a result, shell font did change to Segoe, but the math symbols still rendered as tofu: ``` Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "MS Shell Dlg"="Segoe UI Symbol" "MS Shell Dlg 2"="Segoe UI Symbol" "Tahoma"="Segoe UI Symbol" "Segoe UI"="Segoe UI Symbol" "Segoe UI Symbol"="Segoe UI Symbol" "Segoe UI Emoji"="Segoe UI Symbol" ``` I also tried setting winecfg's "Message Box" configuration to use Segoe UI Symbol with no change in result. Everything tested starting with clean wine-10.20 (Staging) prefixes. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59092 Navid Mafi <navidmafi2006(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |navidmafi2006(a)gmail.com --- Comment #1 from Navid Mafi <navidmafi2006(a)gmail.com> --- Comment on attachment 79882 --> http://bugs.winehq.org/attachment.cgi?id=79882 MCVE for the unicode messagebox issue Full disclosure: this is a quick GPT generated source but it demonstrates the problem. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59092 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|dwrite |-unknown -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59092 --- Comment #2 from Navid Mafi <navidmafi2006(a)gmail.com> --- I found some references and hopefully relevant information. It could be a font substitution or fallback problem? Huge thanks to user Shampagen for the initial lead on this. https://github.com/regorxxx/Playlist-Tools-SMP/wiki/Wine-(Unix-compatibility... https://learn.microsoft.com/en-us/globalization/fonts-layout/fonts#font-link... https://superuser.com/questions/491373/font-smoothing-in-wine https://github.com/Jamesits/windows-10-font-fallback-reg Attached is a reg file with some basic explanations and unconfirmed behavior. I have tested a variety of different combinations and fonts but I can't get emojis and math unicode to render correctly. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59092 --- Comment #3 from Navid Mafi <navidmafi2006(a)gmail.com> --- Created attachment 79895 --> http://bugs.winehq.org/attachment.cgi?id=79895 Some registry shenanigans -- 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.
participants (1)
-
WineHQ Bugzilla