GNOME Bugzilla – Bug 410169
gravity problem with Common chars
Last modified: 2009-07-22 20:27:22 UTC
See the screenshots.
Created attachment 82995 [details] Good
Created attachment 82996 [details] bad
The problem is that Common chars are marked Japanese by pango_itemize() and so take the gravity of the Japanese text. Fantasai also warned us that digits should not go like this. So we need a way to fix this mess now. Using markup to set gravity on them is one fix for now, but that doesn't scale. vuntz: the worst issue is when you show the date, since it will be something like "japanese 12 japanese 22:00" vuntz: japanese should be vertical vuntz: 12 horizontal vuntz: and 22:00 rotated :-) I forgot what that style is called. It's kinda hard to do with pango's current architecture. Though it should be possible to get an approximation by treating the two digits like a ligature...
Related bug 441033.
Also see bug 589113. Seems like U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK also needs some more work to get right.
commit ac2ce962e9c257657eeceaf08d6aeeddd6faaa83 Author: Behdad Esfahbod <behdad@behdad.org> Date: Wed Jul 22 16:24:43 2009 -0400 Bug 410169 – gravity problem with Common chars Only show wide chars (as in g_unichar_iswide()) upright. This improves rendering of 1) digits in CJK context, and 2) Narrow Hangul characters. New public API: pango_gravity_get_for_script_and_width()