mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-24 11:31:43 +02:00
Fix vertical subpixel positioning
We need to apply the Y subpixel phase negated, since we flip the Y axis later.
This commit is contained in:
parent
aa263f881f
commit
52a7c79fd4
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue