[cairo] [PATCH] Generate Type 1 fonts from glyph outlines

Carl Worth cworth at cworth.org
Tue Aug 29 23:04:30 PDT 2006


On Sun, 27 Aug 2006 21:58:42 +0930, Adrian Johnson wrote:
> This patch generates Type 1 fonts for the PS/PDF backends when TrueType
> or Type 1 subsetting fails. This has the advantage over the current
> Type 3 fallback of reduced font size and better quality rendering
> in some PDF viewers. xpdf shows a large improvement in text display
> quality with this patch.

This looks like a non-trivial amount of new code to add to cairo, and
I'm not sure how significant the benefits are. Can you help me
understand them better?

For example, how big are the file size improvements? Are these
significant in light of the other known inefficiencies of text output?
(emitting a new font for every scale, emitting absolute positions for
every glyph even when offset by exactly the advance values of the
previous glyph, etc.) And, yes, I do realize that you are already
submitting patches for some of these other inefficiencies.

Beyond the file size improvements, are there other benefits besides
the xpdf rendering issue? The xpdf thing sounds like just a poor
implementation strategy in that application, (that it doesn't do
antialiasing for vectors in type 3 fonts while its use of freetype for
type 1 fonts does provide antialiasing).

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060829/f7ca64d7/attachment.pgp


More information about the cairo mailing list