summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-26 17:29:17 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-26 17:29:17 -0400
commit52a7c79fd4ff96bb5fac175f0199819b0f8c18fc (patch)
tree48841f9b117f34d35c9e23195532f4d6ed8ee92e
parentaa263f881fb158202f32a7e3a8c6351dbe3626b8 (diff)
Fix vertical subpixel positioning
We need to apply the Y subpixel phase negated, since we flip the Y axis later.
-rw-r--r--src/cairo-ft-font.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 7db16e8bd..6ae60b457 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -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);
}
return CAIRO_STATUS_SUCCESS;