Re: XForms: int *ascend, int *descend of fl_get_char_height??

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 18 Nov 98 06:51:47 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I can't find informations about *ascend, int *descend which are
> parameters of fl_get_char_height and fl_get_string_height.

`ascend' gives you the character's logical extent above the baseline.
`descend' gives you the character's logical extent belowf the baseline.

For example

17________________________..._______________ ascent
16 ...
15 ...
14 ...
13 ...
12 ... ..... ... .....
11 .......... ..........
10 .... ... .... ...
9 ... ... ... ...
8 ... .. ... ..
7 ... .. ... ..
6 ... .. ... ..
5 ... .. ... ..
4 ... .. ... ..
3 ... .. ... ..
2 .... ... .... ...
1 .......... ..........
0__________..._....._____..._....._________ baseline
1 ...
2 ...
3 ...
4 ...
5__________..._____________________________ descent

The letter `p' has a descent of 5 and an ascent of 12. The letter `b'
has a descent of 0 and an ascent of 17.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/