[Cairo] Re: [xsvg] cairo_text_extents ?

Christof Petig christof at petig-baender.de
Fri Dec 5 01:03:43 PST 2003


A agree to all conclusions. Sounds very good.

    Christof

Bill Spitzak schrieb:
>>How do you calculate dy for a normal font?
> 
> 
> Unknown, but I believe this has already been addressed, as I was under the 
> impression that under the current design all fonts can be set to vertical. I 
> would think using the vertical size of the unrotated glyph's bounding box 
> plus some fixed constant (perhaps the vertical size minus the maximum 
> vertical extents of all the bounding boxes) would work.
> 
> 
>>Perhaps a rect is even better than an ellipse.
> 
> 
> Yes I think that may be the best. Imagine a slanted line of text with the 
> glyphs still upright, the glyphs are approximately square and the edges can 
> be pressed against each other. It seems that would be the best appearance.
> 





More information about the cairo mailing list