GNOME Bugzilla – Bug 64130
incorrect alignment for non-latin characters
Last modified: 2004-12-22 21:47:04 UTC
How to reproduce: 1. open new table 2. type "AAAAA" in A1 3. align A1 to right 4. switch kbd to cyrillic and type "AAAAA" in B1 5. align A2 to right 6. look at print preview. ----------------------------- I added: 1. sample table with centred and right-aligned latin/cyrillic text 2. screenshot for it URL for font I used in the table // URW NimbusSans (aka Helvetica) extended with cyrillic // is ftp://ftp.gnome.ru/fonts/urw/nimbussans.tar.bz2
Created attachment 5992 [details] sample table
Created attachment 5993 [details] screenshot
Hmm, I can not replicate this with the default fonts in debian. Can you debug this at your end ? I'm betting that we are getting invalid (probably 0) measurements of strings.
*** Bug 64128 has been marked as a duplicate of this bug. ***
Frob tracked the issue to parseAFM where an array of 256 widths is used to store glyphen widths. However, all of the urwfonts have more than 256 characters
Created attachment 6052 [details] [review] patch for incorrect alignment for non-latin-1 (made by Alexey Novodvorsky <aen altlinux ru>)
Patch has been applied to CVS and will be included in 0.33.