[cairo-commit] src/cairo-cff-subset.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sat Nov 27 17:15:52 PST 2010
src/cairo-cff-subset.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit f238da5291cdb347daa0be64ecc393fc519c4ead
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Nov 28 11:45:00 2010 +1030
CFF subset: fix bug with euro glyph in fallback fonts
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index 26c39a4..359e879 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -1255,7 +1255,7 @@ cairo_cff_font_subset_strings (cairo_cff_font_t *font)
* glyphname to the list of strings to write out.
*/
static cairo_status_t
-cairo_cff_font_subset_charset_strings (cairo_cff_font_t *font)
+cairo_cff_font_add_euro_charset_string (cairo_cff_font_t *font)
{
cairo_status_t status;
unsigned int i;
@@ -1308,7 +1308,7 @@ cairo_cff_font_subset_font (cairo_cff_font_t *font)
return status;
if (font->scaled_font_subset->is_latin)
- status = cairo_cff_font_subset_charset_strings (font);
+ status = cairo_cff_font_add_euro_charset_string (font);
return status;
}
@@ -2517,6 +2517,9 @@ cairo_cff_font_fallback_generate (cairo_cff_font_t *font,
return status;
}
+ if (font->scaled_font_subset->is_latin)
+ status = cairo_cff_font_add_euro_charset_string (font);
+
status = cairo_cff_font_write_subset (font);
if (unlikely (status))
return status;
More information about the cairo-commit
mailing list