[cairo-commit] src/cairo-cff-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Thu May 21 06:11:06 PDT 2015
src/cairo-cff-subset.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d1dda5eeb218d22c79eb82714f5d7c9869f70260
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Thu May 21 22:37:06 2015 +0930
cff: ensure glyph widths are positive when font matrix yy is negative
Bug 90538
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index f15deb5..3ffe6f6 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -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
More information about the cairo-commit
mailing list