GNOME Bugzilla – Bug 557050
Vertical text shows overlapping glyphs
Last modified: 2017-08-14 18:53:06 UTC
Please describe the problem: When displaying vertical text, Katakana glyphs show up on top of each other when rotated with gravity. Latin characters in the same layout are properly spaced. This happens with certain fonts only. Steps to reproduce: 1. Display vertical text including katakana (eg, run the attached test case) 2. Ensure that the font used is, eg, /usr/X11R6/lib/X11/fonts/misc/18x18ko.pcf.gz (MD5 33db27074d3f417023d057b2c7d2d4f0, I can send the font on request if you don't have it, but it comes with X.org so should be widely available) 3. See how the katakana glyphs overlap. Actual results: The katakana glyphs are overlapping Expected results: The katakana glyphs should be spaced properly Does this happen every time? Yes, if using the same font. Other information: Test case will be attached. Using Pango 0.20.0 with image output using Cairo 1.14.x BTW, the 'version selection' for this bug shows versions as 2.13, 2.13.x, 2.14.x, which do not seem to be Pango versions.
oops, somehow went to pangomm, i was certain to have selected pango, which was in a different list anyway.
Created attachment 120915 [details] test case for vertical text showing overlapping katakana
Created attachment 121089 [details] screenshot Actually works fine for me with that font. I checked using pmap and 18x18ko.pcf.gz was the font being used. I used this command: $ pango-view --gravity auto --rotate -90 --markup --text "Katakana 1 ゴウジス" --font 'fixed 18px' -o ~/18x18ko.png I seem to have a different version of the font though: $ md5sum /home/behdad/.fonts/18x18ko.pcf.gz 3c71d0ef5552a447421a7e8694e43e04 /home/behdad/.fonts/18x18ko.pcf.gz If you open the font in fontforge, does it show correct bounding boxes for the glyphs?
Created attachment 121631 [details] screenshot of fontforge on katakana glyphs I installed fontforge and made sure the only option about bounding box I found was enabled, but I'm not sure *what* is the bounding box here, so attached is a screenshot so you can see how it looks. If you need me to do some other manipulation, just tell me what I need to do.