http://bugs.winehq.org/show_bug.cgi?id=31326
Bug #: 31326 Summary: ScriptStringOut draw glyphs with wrong pitch when WenQuanYi Micro Hei is used Product: Wine Version: 1.5.9 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: usp10 AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com Classification: Unclassified
Created attachment 41164 --> http://bugs.winehq.org/attachment.cgi?id=41164 C test case
wine-1.5.9-222-g47b9dd1
ttf-wqy-microhei: 0.2.0-beta-1
WenQuanYi Micro Hei is used as a replacement of SimSun in Ubuntu Wine package, SimSun is the default GUI font for Chinese version of Wine/Windows.
After 5a45e3474141536b02cfc4e924be3aacbd6ad2c5 ( usp10: Implement GPOS Pair Adjustment Positioning Subtable. ) , the glyph pitch is wrong when display string with ScriptStringOut using WenQuanYi Micro Hei.
The simplest way to reproduce this bug is : 1. Make sure WenQuanYi Micro Hei is installed and set as replacement of SimSun 2. Open wine iexplore with LC_ALL=zh_CN.utf8 3. type some characters into the address bar, for example, '/', '<', '>', '.'
Expect result: The pitch between different glyphs should be a suitable value Actual result: The pitch between two '/' is larger then normal, pitch between two '>' is even larger, pitch between two '.' is zero, pitch between two '<' is negative.
winetricks usp10 workaround the bug.
The attachment is a test case, notice that SSA_LINK flag in ScriptStringAnalyse is necessary to reproduce this bug.