[cairo] Re: Writing a PangoLayoutLine on a line in cairo
behdad at behdad.org
Sat Feb 3 15:01:47 PST 2007
On Sat, 2007-02-03 at 23:30 +0200, Dov Grobgeld wrote:
> cairotwisted.c is really neat! Now we can write on warped surfaces.
> :-) There seems to be a bug though in the rendering of the O of the
> central WOW. It looks almost like the two inner nodes of all the
> bezier curves on the outside of the O are inside-out... (You really
> need an illustration to see it.) But it might be because of a very
> strong local warping. I'll have to check it out later.
Yes, I intentionally added the large warp there to produce this problem
so I can fix it! What's happening is that I'm using
cairo_copy_path_flat(), and while that generates lines with errors
within the set context tolerance, the mapping is magnifying the error,
causing the effect you see. I have a plan for how to fix it, and I'll
write a longer report about the algorithm used when I get to that.
"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