After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 64130 - incorrect alignment for non-latin characters
incorrect alignment for non-latin characters
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 64128 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-11-09 08:28 UTC by frob
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample table (1.52 KB, application/octet-stream)
2001-11-09 08:30 UTC, frob
  Details
screenshot (6.86 KB, image/jpeg)
2001-11-09 08:31 UTC, frob
  Details
patch for incorrect alignment for non-latin-1 (made by Alexey Novodvorsky <aen altlinux ru>) (542 bytes, patch)
2001-11-20 18:59 UTC, frob
none Details | Review

Description frob 2001-11-09 08:28:26 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
Comment 1 frob 2001-11-09 08:30:39 UTC
Created attachment 5992 [details]
sample table
Comment 2 frob 2001-11-09 08:31:11 UTC
Created attachment 5993 [details]
screenshot
Comment 3 Jody Goldberg 2001-11-12 05:44:34 UTC
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.
Comment 4 Jody Goldberg 2001-11-18 20:48:38 UTC
*** Bug 64128 has been marked as a duplicate of this bug. ***
Comment 5 Jody Goldberg 2001-11-18 20:56:45 UTC
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
Comment 6 frob 2001-11-20 18:59:27 UTC
Created attachment 6052 [details] [review]
patch for incorrect alignment for non-latin-1 (made by Alexey Novodvorsky <aen altlinux ru>)
Comment 7 Jody Goldberg 2001-11-23 22:47:52 UTC
Patch has been applied to CVS and will be included in 0.33.