[cairo] cairo-created PDFs are too large

Ian Britten britten at caris.com
Wed Dec 3 14:01:00 PST 2008

Adrian Johnson wrote:
>>> There isn't anything you can do to reduce the size other than upgrade 
>>> to each new release when available. There are some things you can do 
>>> that would increase the size unnecessarily like creating a new font 
>>> face each time you draw some text as cairo embeds a separate font for 
>>> each font face.

> Each time you create and use a font face with
> cairo_ft_font_face_create_for_ft_face() you will get a new font embedded 
> in the PDF.

Thanks for the clarification.  I guess I should maybe look at
caching the Cairo face then too, instead of (or in addition to)
the FT_Face I already have to cache...
Perhaps that'll help speed up the rendering of my PDFs too! :)
(Man some of these PDF viewers draw slow! :( )

> You can see what fonts are embedded with pdffonts or File->Properties in 
> Evince.

I didn't know that - Thanks!
[ Although, I now see more stuff I need to ask about regarding my
embedded user fonts, but I'll start a new thread when I get to that ]

More information about the cairo mailing list