Commit 52a7c79f authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix vertical subpixel positioning

We need to apply the Y subpixel phase negated,
since we flip the Y axis later.
parent aa263f88
Pipeline #51638 failed with stage
in 5 minutes and 25 seconds
......@@ -2455,14 +2455,13 @@ _cairo_ft_scaled_glyph_load_glyph (cairo_ft_scaled_font_t *scaled_font,
if (vertical_layout)
_cairo_ft_scaled_glyph_vertical_layout_bearing_fix (scaled_font, face->glyph);
if (face->glyph->format == FT_GLYPH_FORMAT_OUTLINE) {
FT_Pos xshift, yshift;
xshift = _cairo_scaled_glyph_xphase (scaled_glyph) << 4;
yshift = _cairo_scaled_glyph_yphase (scaled_glyph) << 4;
FT_Outline_Translate (&face->glyph->outline, xshift, yshift);
FT_Outline_Translate (&face->glyph->outline, xshift, -yshift);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment