mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 21:08:10 +02:00
cff: ensure glyph widths are positive when font matrix yy is negative
Bug 90538
This commit is contained in:
parent
f52f0e2feb
commit
d1dda5eeb2
1 changed files with 2 additions and 2 deletions
|
|
@ -1163,8 +1163,8 @@ cairo_cff_font_read_font_metrics (cairo_cff_font_t *font, cairo_hash_table_t *t
|
|||
if (p < end)
|
||||
p = decode_number (p, &yy);
|
||||
}
|
||||
/* Freetype uses 1/yy to get units per EM */
|
||||
font->units_per_em = _cairo_round(1.0/yy);
|
||||
/* Freetype uses 1/abs(yy) to get units per EM */
|
||||
font->units_per_em = _cairo_round(1.0/fabs(yy));
|
||||
}
|
||||
|
||||
static cairo_int_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue