[cairo] cairo-created PDFs are too large

Adrian Johnson ajohnson at redneon.com
Thu Dec 4 06:21:33 PST 2008


Ian Britten wrote:
> Adrian Johnson wrote:
> 
>> 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.
> 
> - If I render text using TT fonts, I seem to automatically only get
>    the unique faces written to my PDF (As reported by evince), with
>    no additional caching on my part.  This seems to contradict what
>    you wrote.

Yes you are right. I just checked and something has changed between 
1.6.4 and 1.8.4 to make multiple calls to 
cairo_ft_font_face_create_for_ft_face() with the same FT_Face return the 
same cairo_font_face_t.



More information about the cairo mailing list