cheer_xiao
2010-Oct-22 09:06 UTC
[Wine] Font config in Desktop Integration broken when switching locales
As a translator, It is frequent for me to switch between locales (en_US.utf8 and zh_CN.utf8 for me), but the font configurations in winecfg/'Desktop Integration' gets broken under certain circumstances. To demonstrate, I run winecfg with LANG=zh_CN.utf8, and set the 'Menu Text' (????) font to 'WenQuanYi Zen Hei Sharp' (???????) 10pt (shot00.png). It turns out fine (shot01.png), but with LANG=en_US.utf8 the menu text font is a mess (shot02.png). The configuration under zh_CN.utf8 fails to work under en_US.utf8. However, if I run winecfg with LANG=en_US.utf8, and redo the setting (shot10.png, shot11.png), the configuration works under both locales (shot12.png, shot13.png). The configuration made under en_US.utf8 is more "portable". An interesting phonomenum is that in shot10.png, the font configuration seems to have been "reset", ie. it is the font on the top of the list, with the minimum size. This also happens when you configure the font (menu text font here) for the very first time so it must be some kind of default value. The configuration under zh_CN.utf8 was not recognized by winecfg under en_US.utf8, thus falling back to the default. However, during font rendering such fallbacks are not functioning properly (the fallback itself shouldn't be happening though), resulting in the boxes in shot02.png. I guess this issue is due to a bug of how winecfg saves the font configurations and/or how these configurations are used during font rendering. Could anyone explain and/or fix this? I have been looking up the registry but the configurations appear to be stored somewhere else. BTW: Another problem is also observed. Every time I run wine programs (like winecfg, notepad) with LANG=zh_CN.utf8 I get lots of: fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes I run Wine compiled from the git repo (just a day or two ago) on Ubuntu 10.10. Default locale is en_US.utf8. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/d389927f/attachment.htm>
cheer_xiao
2010-Oct-22 09:13 UTC
[Wine] Font config in Desktop Integration broken when switching locales
Sorry to have left out the screenshots. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot00.png Type: image/png Size: 16268 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot01.png Type: image/png Size: 2802 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0001.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot02.png Type: image/png Size: 7422 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot10.png Type: image/png Size: 12523 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0003.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot11.png Type: image/png Size: 12555 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0004.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot12.png Type: image/png Size: 10255 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0005.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: shot13.png Type: image/png Size: 10557 bytes Desc: not available URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/046c03b2/attachment-0006.png>
James McKenzie
2010-Oct-25 02:31 UTC
[Wine] Font config in Desktop Integration broken when switching locales
On 10/22/10 2:13 AM, cheer_xiao wrote:> Sorry to have left out the screenshots.Cheer: the Screenshots were removed, for security, from the mailing list. Can you post them somewhere where everyone can get to and see them and then post the URLs to them? Thank you. James McKenzie
cheer_xiao
2010-Oct-26 15:31 UTC
[Wine] Font config in Desktop Integration broken when switching locales
Thank James for informing that the pictures were removed in the mailing list. I have uploaded the screenshots at http://s795.photobucket.com/albums/yy240/xiaqqaix/Wine%20Screenshots/ On Oct 22, 2010 5:13 PM, "cheer_xiao" <xiaqqaix at gmail.com> wrote: Sorry to have left out the screenshots. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101026/a5fadfe7/attachment.htm>
Reasonably Related Threads
- When is font fallback and/or non-Unicode support scheduled to be fully implemented?
- [Bug 1663] New: Allow to use agent for distribution of public keys.
- Simple application made with visual studio 2005 not running
- Problem of "sort" utf8 file.
- can't copy file with chinese name.