Skip to content

clutter/text: Use the PangoLayout y offset for min height calculation

Julian Sparber requested to merge jsparber/fix_clutter_text_min_height into main

The min height reported by ClutterText when ellipsize and line-wrapping are enabled is currently too small to fit the text. This seems to be caused by pango_layout_line_get_extents() returning a negative y offset, making line_extents_y + line_extents_height smaller than line_extents_height itself.

So instead of using the y-offset from the extents of the LayoutLine, use the y-offset from the extents of the Layout itself to fix the incorrect minHeight.

Edited by Julian Sparber

Merge request reports