[cairo] GTKCairo development

Jon Smirl jonsmirl at yahoo.com
Tue May 4 12:31:13 PDT 2004


Will Pango layout text on a curve? If so that will solve an SVG problem.

Also, does freetype2 know how to rasterize SVG font files? 

Should the Cairo text API only consist of two entries:
1) Cache this set of glyphs for me
2) Draw this list of glyphs at these x/y locations

It's better for the low level drawing engine if the glyphs are collected into
larger bitmaps than 1000's of individual ones. That way one bitmap can be bound
into a texture unit and all of the glyphs accessed without setting the unit up
again. It also makes it easier to track the cache at the server.

To build the cache with OpenGL first make the composite bitmap using Freetype.
Then call the Cairo cache function with the bitmap and an array of x,y,w,h for
each glyph. Cairo would then make a display list for the bitmap (causing it to
be cached in the server) and a little display list for each glyph that embeds
the x,y,w,h and bitmap id. These display list ids need to be added to the input
x,y,w,h array. 

To draw glyphs pass in an array of x,y,display list id. Cairo would then make a
chain of calls to the display lists passing in the destination x,y coordinates.

=====
Jon Smirl
jonsmirl at yahoo.com


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 




More information about the cairo mailing list