[cairo] [PATCH] CFF charset subsetting
Behdad Esfahbod
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
> information
> 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
> glyphs
> (pdf file contains all glyphs in a font that maps to Unicode), one
> group
> 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
> glyphs).
>
> 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. :)
--
behdad
http://behdad.org/
"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
mailing list