Merge branch 'text_layout_matrix_transform_bug' into 'master'

gimptextlayout-render.c: Don't apply matrix transformtion

Closes #1028

See merge request GNOME/gimp!1377
This commit is contained in:
Idriss Fekir 2025-06-30 10:55:10 +02:00
commit 19e2901ca9

View file

@ -47,8 +47,11 @@ gimp_text_layout_render (GimpTextLayout *layout,
gimp_text_layout_get_offsets (layout, &x, &y);
cairo_translate (cr, x, y);
gimp_text_layout_get_transform (layout, &trafo);
cairo_transform (cr, &trafo);
/*TODO matrix transformation should be applied here
* but since it causes some problems and is not doing anything
* (it's for the future when we will implement text transformations)
* disabling it fixes some text layout problems (see bug #1028)
*/
if (base_dir == GIMP_TEXT_DIRECTION_TTB_RTL ||
base_dir == GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT)