[cairo-bugs] [Bug 13433] Cairo generated postscript files, fail to load under Adobe Illustrator (CS2)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 2 02:52:42 PST 2007


------- Comment #4 from ajohnson at redneon.com  2007-12-02 02:52 PST -------
I had another look at your PostScript output. There are 35 embedded fonts in
the file each with with a small number of glyphs. Many of the fonts have the
same glyph name. Looking at the file in ghostscript there is not much text and
all of it appears to be the same font. It looks like the same font is embedded
each time a text string is drawn. In fact counting the all the graph labels and
other text that appears to have been drawn with a separate call to
cairo_show_text() or cairo_show_glyphs() I get exactly 35.

It may be the case that Illustrator has a problem with the same font embedded
multiple times. Due to the subsetting the glyph numbering in each subset is
restarted at 0 so each font will have different glyphs at the same glyph index.

Creating a scaled font once and re-using it each time you call
cairo_show_text/glyphs will only embed the font once. Creating a cairo font
face once and then creating scaled fonts multiple times will only embed one
font for all glyphs drawn with the font face as the cairo_font_face_t type is
what cairo uses to identify the font. However calling
cairo_ft_font_face_create_for_ft_face() multiple times with the same FreeType
face will result in a new embedded font for each call to
cairo_ft_font_face_create_for_ft_face() as cairo does not know that it is the
same face.

How are you creating the scaled fonts?

Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the cairo-bugs mailing list