[cairo] User-fonts landed

Behdad Esfahbod behdad at behdad.org
Thu May 15 10:26:41 PDT 2008

On Thu, 2008-05-15 at 00:06 +0930, Adrian Johnson wrote:
> Behdad Esfahbod wrote:
> > On Tue, 2008-05-13 at 12:46 -0400, Behdad Esfahbod wrote:
> >> Thanks Kristian.  Did that, and found a bug with my traps_path().
> >> Fixing that and then I'll push.
> > 
> > Humm, looks like a Type1 bug, not traps.  Adrian, can you run user-font
> > and check out?
> It does not appear to be a Type1-fallback problem. The path that 
> Type1-fallback is getting from _cairo_scaled_glyph_lookup() is broken. 
> It is easy to see if the user-font stroke is changed to butt caps and 
> miter joins to reduce the number of paths.

Doesn't make sense.  Same path is nicely embedded in the SVG output, and
also fill()'ed in all outputs as the second line.  Only the PDF font
subsetting shows this bug.
> > Also, there seems to be some strong assumptions about glyph 0.  Try
> > removing the first line in glyph definitions of test/user-font.c and
> > watch the new glyph 0 not showing up in PDF output...
> It works fine with acroread. Looks like a poppler problem.

Or a cairo/freetype problem when using that font, who knows...


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list