[Cairo] Re: [xsvg] cairo_text_extents ?

Carl Worth cworth at east.isi.edu
Tue Dec 16 13:59:22 PST 2003


On Dec 16, Owen Taylor wrote:
 > The Pango approach is going to be that lines of text always 
 > proceed in the positive-X direction. Vertical text will involve
 > a 90 degree rotation of Han characters during layout so they
 > get rotated back into vertical by the overall matrix.
 > 
 > This should considerably simplify the bookkeeping.

OK. Do let us know if we start going in a direction that will make
your life miserable.

 > I think it's very much worth reading the appropriate parts of
 > the CSS3 text module:
 > 
 >  http://www.w3.org/TR/css3-text/
 >
 > before designing any API with the hope that it is going to work 
 > well for vertical text.

Thanks for the pointer.

 > I also tend to think that vertical text is well out of the scope of
 > what should be in the "toy api".

Actually, in cairo the "toy" cairo_text_extents and "real"
cairo_glyph_extents functions share the same structure definition for
their return value.

-Carl




More information about the cairo mailing list