freetype
[Top][All Lists]
Advanced

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

Re: need help! (font width vs. font height)


From: crusius_at_stanford . edu
Subject: Re: need help! (font width vs. font height)
Date: Fri, 03 Nov 2000 10:14:42 -0800

i "solved" my width problem by first setting a pixel size, loading a
glyph, and checking what was the resulting width. i then re-set the
pixel size, scaling it accordingly. it's ugly, but works fine. now i
have a few more problems:

1) once i have the font correctly scaled, i need to get "\baselineskip"
   from it. i tried face->size->metrics.height, but the value doesn't
   work (it's actually less than ascender-descender). i then used
   ascender-descender, which seems to work ok. is that right?

2) now i have the height for the lines. but i still need the offset
   from the bottom of the line and the baseline. i tried
   face->size->metrics.descender, but this value seems to fall short
   about 2 pixels from the "real" value. the letter "j", for example,
   extends 2 pixels below the line. (i am using cmtt10 for tests).

i guess i got (1) right. what about (2)???

--
Cesar Augusto Rorato Crusius    __o      __o      __o      __o      __o    
Stanford University           _`\<,    _`\<,    _`\<,    _`\<,    _`\<,    
e-mail:address@hidden    (_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)   
www.stanford.edu/~crusius
                                       o      _     _         _
   __o      __o      __o      __o     /\_   _ \\o  (_)\__/o  (_)
 _`\<,    _`\<,    _`\<,    _`\<,    _>(_) (_)/<_    \_| \   _|/' \/
(_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)  (_)        (_)   (_)    (_)'  _\o_

He who sacrifices functionality for ease of use
Loses both and deserves neither



reply via email to

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