[Issue 43029] support PS-OpenType/OTF/(SFNT with CFF) fonts for PDF export and printing

adrianjohnson at openoffice.org adrianjohnson at openoffice.org
Mon Apr 14 14:01:35 UTC 2008

To comment on the following update, log in, then open the issue:

------- Additional comments from adrianjohnson at openoffice.org Mon Apr 14 14:01:30 +0000 2008 -------
> I had a closer look at the PS export and especially its font
> handling. For CFF fonts the fallback method seems to be used: The
> glyph outlines get wrapped into a Type1, but hints are lost. Of course
> hints in Type1 fonts are not as important as for TTFs, but since the
> conversion between CFF and Type1 can be done without any loss, I was
> hoping for that. I already have some code that does that, but it is
> not reliable enough yet. If we need a quick solution the fallback to
> outlines seems to be a reasonable alternative though. On the other
> hand experts advocating CFF outlines over TTF outlines seem to be
> extremely sensitive about this topic.

Yes, subsetting CFF to Type 1 would be better. I looked into this when
I wrote the CFF subsetting but never got around to actually writing any
code. Preserving the hinting in PDF was the priority while subsetting
CFF to Type 1 for PS was in the "nice to have" category.

> The full-CFF to subset-CFF conversion used in cairo's PDF export is
> very nice indeed. Thanks for the pointer! We'll need CFF-subsetting on
> Windows too, but don't have any use for other parts of cairo on that
> platform yet. There are not too many deep dependencies into cairo's
> infrastructure, so if breaking this part out is technically feasible
> I'd like to do it, if you agree.

You are welcome to use the code. I am interested in seeing free
software have full support for OTF/CFF fonts. The only dependencies I
am aware of are cairo-array.c and cairo-hash.c. Of course it would
also be nice for cairo to receive any bug fixes and enhancements you
make to the code.

I have been thinking about whether adding API to cairo to expose the
font subsetting code would be useful. I don't know if anything like
that would be useful to you. However breaking out whatever you need
is probably the easiest solution.

Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.

More information about the fonts-bugs mailing list