[cairo] Font metrics under font transformations

Maarten Breddels dmon at xs4all.nl
Tue Jan 11 13:00:54 PST 2005


Carl Worth wrote:

>On Tue, 11 Jan 2005 21:22:00 +0100, Maarten Breddels wrote:
>  
>
>>                                                I would rather see cairo 
>>use the bottom left as (0,0), i mean, using the upper left corner is 
>>from the days of accessing framebuffers etc :).
>>    
>>
>
>In addition to framebuffers, most popular image formats store the data
>this way. We can't make both the graphics and font worlds happy
>simultaneously here.
>
>  
>
Bummer :)

>>No matter how weird the transformation is, the 'add advance vector' and 
>>'substract height vector' should always work, i think.
>>    
>>
>
>Why export an interface that requires the user to use differing signs
>for related metrics? That doesn't seem to simplify things in my view.
>
>  
>
Well, by brains is used to thinking in postscript, so (0,0) at bottom 
left, y up. It seems really strange to me that when i have set a 
fontsize to sth positive, i have to 'add' the font height vector, 
instead of substract it. But maybe we disagree on this, it's not a big 
issue. Seeing all vectors in the text and font metric structures already 
makes me happy :)

>-Carl
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>cairo mailing list
>cairo at cairographics.org
>http://lists.freedesktop.org/mailman/listinfo/cairo
>  
>
-Maarten Breddels



More information about the cairo mailing list