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 535041 - Wrong positioning of letters
Wrong positioning of letters
Status: RESOLVED DUPLICATE of bug 341481
Product: pango
Classification: Platform
Component: cairo
1.21.x
Other All
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2008-05-27 08:23 UTC by Joachim Breitner
Modified: 2008-08-12 17:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Joachim Breitner 2008-05-27 08:23:08 UTC
Please describe the problem:
Hi,

I’m not sure if this is a pango or cairo bug, but I’m starting here. See
the simple attached program that renders a string using cairo and pango.
It is written in python, but the same behaviour was observed in an C
package first (binary package sm), so it is a bug in the C libraries.

It should print ":-)" in relatively large letters, but I get the output
as in the attached image. This does not happen at all font sizes, but
only for certan spans of sizes.

This bug is relatively bad for users of screen-message (sm), because it
makes it non-reliable.

Thanks,
Joachim

(See http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pangobug.py;att=1;bug=482329 and http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pangobug.png;att=2;bug=482329 for the files, and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482329 for the currently non-existing discussion of this bug in the debian bugtracker)

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Behdad Esfahbod 2008-05-27 08:40:02 UTC
This is fixed in cairo master already.  Please check.
Comment 2 Joachim Breitner 2008-05-27 09:03:27 UTC
Thanks, in this case I’ll just wait for the next release.
Comment 3 Joachim Breitner 2008-07-30 21:34:57 UTC
Hi,

just wondering: Is this fix supposed to be in any release by now? The comments are from May, and it seems there were releases since then: (by looking at http://packages.qa.debian.org/p/pango1.0.html)

Thanks,
Joachim
Comment 4 Joachim Breitner 2008-08-12 04:45:26 UTC
Note that it is very surely related to kerning, and is a linear problem. It also appears not only for changing font sizes, but also for constang font sizes and changing scaling in the pango context matrix.

It seems as if the scaling increases the kernel stronger than that it increases the font size: If I use screen message to only display "Ta", both letters are above each other.  The more spaces I append to that, and thus the smaller the letters become, the more normal the kerning becomes, until it’s perfectly fine for „normal“ font sizes.
Comment 5 Joachim Breitner 2008-08-12 15:04:13 UTC
Sorry, it seems I have to re-open this bug. I just compiled and instlled the newest versions[1] of pango and cairo, but still: If I use sm to display "Ta", both letters are above each other.

If you want to reproduce it, use this (fully auto-make-enabled) program: http://ftp.debian.org/debian/pool/main/s/screen-message/screen-message_0.13.orig.tar.gz

Thanks,
Joachim

[1] pango1.0-1.21.4 and cairo-1.7.4
Comment 6 Behdad Esfahbod 2008-08-12 17:45:43 UTC
I'll look into this later, hopefully before 1.22.

*** This bug has been marked as a duplicate of 341481 ***