[cairo] PDF text doesn't render
Behdad Esfahbod
behdad at behdad.org
Sat Sep 22 19:56:04 PDT 2007
On Sun, 2007-09-23 at 03:06 +0100, Baz wrote:
> On 23/09/2007, Behdad Esfahbod <behdad at behdad.org> wrote:
> > That patch sure looks fine, though another option would be to fix that
> > file to work with other font backends too...
> >
>
> Ok -pushed. You're right, fixing this properly would be better; it
> seems that everything we need we already have except a replacement for
> FT_Get_Glyph_Name. I'll play around.
>
> btw there's another call to FT_Load_Glyph in the type1-subset code
> that can return CAIRO_STATUS_NO_MEMORY. I'm not sure if this would
> actually happen ie if we had an error loading a glyph to show it, will
> we still try to use it in the subset? And if we don't find any glyph
> info, and tried to ignore that error, what would end up in the subset?
Good point. That's essentially one reason that I said that patch needs
more work. Last time I checked, out-of-range glyphs were causing
invalid memory access in PS/PDF backends...
I'll have another look at it. Lets decide on not drawing anything for
invalid glyph ids (not even a box), and just take a note that the glyph
id is invalid or something, so we can do the right thing later.
> Cheers,
> Baz
--
behdad
http://behdad.org/
"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