[cairo] [PATCH] CFF charset subsetting
behdad at behdad.org
Sat Jan 27 15:08:05 PST 2007
On Sat, 2007-01-27 at 14:07 -0500, Eugeniy Meshcheryakov wrote:
> Current code for subsetting CFF fonts does not write charset
> into it. According to spec this means that font have ISOAdobe charset.
> This charset contains only 228 names (excluding .notdef). This is not
> enough for subfotns with 256 glyphs and causes bugs when viewing
> generated PDFs. For example acroread displays groups of 12 empty
> (pdf file contains all glyphs in a font that maps to Unicode), one
> for subset, I think. kpdf does not display most of glyphs in such file
> at all, except some on last pages (from last font, it has less
> Attached patch adds generaion of charset subsets for CFF fonts.
Thanks Eugeniy. I leave it to Adrian and others expert in that stuff to
comment on the patch. :)
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo