mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 18:48:09 +02:00
[cairo-gstate] Don't bypass glyph transformation if font_matrix has translation (#9365)
We have tests for this (ft-text-vertical-*), but unfortunately they didn't prevent the regression here because they have been marked XFAIL, since we didn't quite fix them for PS.
This commit is contained in:
parent
57589a9049
commit
46add53973
1 changed files with 2 additions and 1 deletions
|
|
@ -1588,7 +1588,8 @@ _cairo_gstate_transform_glyphs_to_backend (cairo_gstate_t *gstate,
|
|||
cairo_matrix_t *device_transform = &gstate->target->device_transform;
|
||||
|
||||
if (_cairo_matrix_is_identity (ctm) &&
|
||||
_cairo_matrix_is_identity (device_transform))
|
||||
_cairo_matrix_is_identity (device_transform) &&
|
||||
gstate->font_matrix.x0 == 0 && gstate->font_matrix.y0 == 0)
|
||||
{
|
||||
memcpy (transformed_glyphs, glyphs, num_glyphs * sizeof (cairo_glyph_t));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue