Skip to content

label-freetype: Ensure font metrics are up to date when querying dimensions

Ray Strode requested to merge freetype-metrics-fix into main

If code calls ply_label_get_width without ply_label_show or some other call that forces the dimensions to be computed first, then the returned width will be wrong.

This commit makes the freetype plugin look more like the pango plugin where the size will computed on demand when querying the width, if necessary.

Merge request reports