[Bug 33251] RPG Tkool VX Ace: some texts aren't fit in the message box.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Mar 20 10:44:24 CDT 2013


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

--- Comment #2 from Sagawa <sagawa.aki+winebugs at gmail.com> 2013-03-20 10:44:24 CDT ---
In short, this issue caused by average font width difference due to internal
fixed-point fractional errors.

It occurs following steps:
1. Calculate ppem (pixel per em). On both of systems, VL Gothic 24 pixel cell
height corresponds to 19 ppem.
2. Calculate the average font width. Wine says it's 10 pixel. But, Windows says
it's 9 pixel.
3. As VL Gothic is fixed-pitch font, full-width character advance is twice of
average font width. So, Wine uses 20 pixel advance, Windows uses 18 pixel
advance.
4. Finally, for 400 pixel message box, 22 Japanese characters are displayed in
Windows, but 20 characters are shown in Wine.

My proposed patch adjusts the font average width in step 2.

I already posted to wine-patches:
http://source.winehq.org/patches/data/94913
http://source.winehq.org/patches/data/94914

-- 
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