[Bug 16325] incorrect font rendering for CJK programs

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Feb 1 05:59:59 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=16325

--- Comment #120 from Michal Suchanek <hramrach at gmail.com> 2012-02-01 05:59:59 CST ---
(In reply to comment #119)
> I suppose that with locale UTF8 the yellow part should do nearly nothing.

This really depends on the application.

As far as I know Wine uses UFT-8 internally.

Strings provided by ANSI applications have to be converted.

(In reply to comment #112)
> Dmitry Timoshkov:
> 
> I guess your opinions are flawed from the very beginning.
> 
> Firstly, requiring the user to setup font links is indeed a bug.
> 
> As far as I know, many windows users DO NOT KNOW what (the ****) is font links.

If font links are not installed this is a bug in Wine.

There is an issue that while Windows have CJK fonts Wine has none so it would
have to find some random CJK font to link with (not necessarily
metric-compatible with the system font or working at all).

When I asked for Wine packages to depend on a particular set of CJK fonts and
install font links for those Dmitry was against that but later I found a bug
that asked for automatic font linking and was marked fixed.

So if font linking is not working I suggest you find and reopen that bug.

> English Windows can run Chinese programs flawlessly if Chinese locale is
> selected in Control Panel.
> 
> Secondly, locale overriding is an desire feature.
> 
> As far as know, some Chinese users enjoy Japanese games. When the Japanese game
> displays garbage, Microsoft's AppLocale or Third-party NTLEA. (These may be no
> maintenance for NTLEA currently, but to my experience, this one works much
> better)

Wine has this feature, just no UI for it is part of Wine.

When you run "LANG=zh_CN.UTF-8 wine yourapp.exe" (or whatever is the Chinese
locale spelled) Wine should use the Chinese ANSI code pages.

You could easily create launchers, menus, etc. for this.

Note, however, that many programs are just broken and mix multiple ANSI
encodings and do display garbage in some places whatever encoding is used.

This includes many programs ported from Asian encoding to Western as well as
many programs that supposedly support multiple languages like Outlook (up to
2003).

> So I use en_US.UTF-8 locales for all my machines and accounts. Native Linux
> programs can display and input CJK flawlessly, do I have to change locale just
> because of wine?

You don't. You have to run just wine in the desired locale, and you can run
each program in different locale.

> 
> Above all, wine can do better than Windows. I hope wine can support locale
> overriding for individual programs one day.

Wine does support locale overriding. It can't do better than Windows because
then other programs that rely on Windows behaviour would fail.

> 
> Thirdly, your testing principle is wrong. 

Since many programs are broken and will display garbage no matter what testing
is always required. Otherwise you could break Wine to cater to one particular
broken program but break many that behave correctly.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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