[cairo] cairo-pdf glyph positioning bug with librsvg

Behdad Esfahbod behdad at behdad.org
Wed Feb 20 11:27:55 PST 2008


On Wed, 2008-02-20 at 11:14 -0500, Dominic Lachowicz wrote: 
> SVN HEAD librsvg now has a patch that coalesces the text inside of a
> <text> or <tspan> node, so that it can be passed to a single
> PangoLayout.
> 
> If you wouldn't mind trying it out, I'd appreciate it. I think that
> this bug is fixed now.

Tested and works as expected now.

Thanks!

behdad

PS.  At some point I plan to start hacking on librsvg, to familiarize
myself with SVG text and font capabilities... But don't hold your
breath :).


> Cheers,
> Dom
> 
> On Wed, Feb 20, 2008 at 10:17 AM, Dominic Lachowicz
> <domlachowicz at gmail.com> wrote:
> > Hi Behdad,
> >
> >  Sorry that it's taken me so long to reply. I've committed this patch
> >  to librsvg. I really appreciate it.
> >
> >
> >  >   - librsvg apparently breaks the text upon seeing the first non-ASCII
> >  >  text character.  I have no idea why that is.  I guess something to do
> >  >  with XML parsing.  This is why the bug looked so ridiculous, because the
> >  >  text was being rendered as two PangoLayout's, so it looked like it's a
> >  >  pango issue.  The bug will not be completely fixed until this issue
> >  >  exists.
> >
> >  I think that this is because librsvg gets more than one set of
> >  character data from libxml2, and it fails to coalesce that into the
> >  same tspan. I'll have a look.
> >
> >  Thanks again!
> >  Dom
> >
> 
> 
> 
-- 
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