freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] Re: Where to position the baseline?


From: Troy Watson
Subject: [ft] Re: Where to position the baseline?
Date: Sat, 15 May 2010 08:23:18 +1000

Sorry, not sure what happened to the message body!

Tutorial 2, section 3.a ( Design global metrics) states:
ascender:
    ... Unfortunately, font formats define the ascender differently. ...
descender:
    ... Unfortunately, font formats define the descender differently. ...

Section 3.b (Scaled global metrics)
height:
    ... This is probably the only field you should really use in this structure.


Where should the baseline of the first line of text be positioned?
Currently, I am using the scaled ascender field of
face->size->metrics, but if it is unreliable, are you supposed to
check the bbox of all glyphs on the first line to determine the
baseline position?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]