PS: execute type3 glyphs in their own dictionary

The PS emulation of the PDF text operators stores some data on the
user dict between calls to operators. When using the PDF text
operators in type 3 glyphs, the PDF operators were overwriting the
same data as the PDF operators in the page. Fix this by creating a new
dictionary to execute each type 3 glyph in.
This commit is contained in:
Adrian Johnson 2008-09-11 08:46:55 +09:30
parent b56075ee51
commit d878924cf8

View file

@ -554,7 +554,8 @@ _cairo_ps_surface_emit_type3_font_subset (cairo_ps_surface_t *surface,
"/FontBBox [%f %f %f %f] def\n"
"/BuildChar {\n"
" exch /Glyphs get\n"
" exch get exec\n"
" exch get\n"
" 10 dict begin exec end\n"
"} bind def\n"
"currentdict\n"
"end\n"