Use RD and ND for delimiting glyph data instead of -| and |-.

We probably should figure out from the private dictionary which of the two
pairs the font defines and uses, but I don't actually have fonts that
use -| and |-, so for now for flip the default.
This commit is contained in:
Kristian Høgsberg 2006-05-18 02:24:02 -04:00 committed by Kristian Høgsberg
parent 466d3da4ef
commit 2fafbac390

View file

@ -634,11 +634,11 @@ write_used_glyphs (cairo_type1_font_subset_t *font,
int length;
length = snprintf (buffer, sizeof buffer,
"/%.*s %d -| ", name_length, name, charstring_length);
"/%.*s %d RD ", name_length, name, charstring_length);
cairo_type1_font_subset_write_encrypted (font, buffer, length);
cairo_type1_font_subset_write_encrypted (font,
charstring, charstring_length);
cairo_type1_font_subset_write_encrypted (font, " |-\n", 4);
cairo_type1_font_subset_write_encrypted (font, "ND\n", 4);
}
typedef void (*glyph_func_t) (cairo_type1_font_subset_t *font,