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 500725 - Large scaling causes glyph misplacement
Large scaling causes glyph misplacement
Status: RESOLVED DUPLICATE of bug 341481
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2007-11-30 21:05 UTC by Nicolas George
Modified: 2007-11-30 23:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case showing the problem (961 bytes, text/plain)
2007-11-30 21:06 UTC, Nicolas George
Details

Description Nicolas George 2007-11-30 21:05:00 UTC
When rendering a Pango layout to a Cairo surface, a large (but reasonable) scaling causes strange glyphs placement.

For example, in the soon-to-be attached program, the string "rc" is rendered at size 1.2 with a scaling of 72/2.54, and the r and c are rendered on top of one another. Changing the program to use a size 12 and a 7.2/2.54 scaling gives a more sensible (but still not perfect placement).

I suspect some sort of kerning done with integers instead of floats.

Regards,

-- 
  Nicolas George
Comment 1 Nicolas George 2007-11-30 21:06:04 UTC
Created attachment 99924 [details]
Test case showing the problem
Comment 2 Behdad Esfahbod 2007-11-30 23:33:09 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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