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 722409 - Rendering is overlapped when line is too long
Rendering is overlapped when line is too long
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
1.36.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2014-01-17 10:21 UTC by Akira TAGOH
Modified: 2018-05-22 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Akira TAGOH 2014-01-17 10:21:56 UTC
Originally reported at Red Hat Bugzilla:
  https://bugzilla.redhat.com/show_bug.cgi?id=1051083

The summary says it all though, "too long" means over 320K characters at a line in the reporter's case. the screenshot is attached there.
Comment 1 Behdad Esfahbod 2014-01-19 09:16:34 UTC
This is because Pango coordinates are in 22.10 fixed-point format.  At 13 pixels a glyphy, 13 * 322639 = 4194307 overflows 2**22 = 4194304.

Not sure how to fix this.

How about "Don't do that"?
Comment 2 Akira TAGOH 2014-01-20 03:24:31 UTC
Aha. though I tend to agree with "Don't do that" and I'm sure it's pretty rare case to make it happen in the real use cases. that said that would be good to have a safety check to not mess it up IMHO. so if it's the limitation on current implementation at this point, how about preventing adding more characters to PangoLayout? unfortunately pango_layout_set_text() doesn't return any value and assuming it won't fail. so it may requires to change API though.
Comment 3 GNOME Infrastructure Team 2018-05-22 13:11:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/228.