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 511172 - pango_layout_set_height() with positive height always shows at least two lines
pango_layout_set_height() with positive height always shows at least two lines
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other All
: Normal blocker
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2008-01-22 03:25 UTC by Behdad Esfahbod
Modified: 2008-02-26 01:31 UTC
See Also:
GNOME target: 2.22.x
GNOME version: 2.21/2.22



Description Behdad Esfahbod 2008-01-22 03:25:30 UTC
Currently when a positive height is set on the layout, at least two lines are rendered before ellipsizing.  That's obviously not correct.
Comment 1 Behdad Esfahbod 2008-02-26 01:31:04 UTC
2008-02-25  Behdad Esfahbod  <behdad@gnome.org>

        Bug 511172 – pango_layout_set_height() with positive height always
        shows at least two lines

        * pango/pango-layout.c (should_ellipsize_current_line),
        (pango_layout_check_lines),
        (pango_layout_get_empty_extents_at_index),
        (pango_layout_line_get_empty_extents):
        Initialize line_height using empty-line extents.