mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 01:17:59 +02:00
[ft] Fix vertical advance metrics of bitmap fonts (#21985)
This commit is contained in:
parent
4314cae874
commit
4232719af9
1 changed files with 2 additions and 2 deletions
|
|
@ -1924,7 +1924,7 @@ _cairo_ft_scaled_glyph_init (void *abstract_font,
|
|||
FT_Pos x1, x2;
|
||||
FT_Pos y1, y2;
|
||||
FT_Pos advance;
|
||||
|
||||
|
||||
if (!vertical_layout) {
|
||||
x1 = (metrics->horiBearingX) & -64;
|
||||
x2 = (metrics->horiBearingX + metrics->width + 63) & -64;
|
||||
|
|
@ -1979,7 +1979,7 @@ _cairo_ft_scaled_glyph_init (void *abstract_font,
|
|||
if (hint_metrics || glyph->format != FT_GLYPH_FORMAT_OUTLINE)
|
||||
fs_metrics.y_advance = DOUBLE_FROM_26_6 (metrics->vertAdvance) * y_factor;
|
||||
else
|
||||
fs_metrics.y_advance = DOUBLE_FROM_26_6 (glyph->linearVertAdvance) * y_factor;
|
||||
fs_metrics.y_advance = DOUBLE_FROM_16_16 (glyph->linearVertAdvance) * y_factor;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue