[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] Line space calculation in FT 1
From: |
Rob Kramer |
Subject: |
[Freetype] Line space calculation in FT 1 |
Date: |
Thu, 22 Apr 2004 14:06:13 +0800 |
User-agent: |
KMail/1.6.1 |
Hi,
I hope this mailing list is still alive.. :)
I'm looking for a way to calculate a good starting value for the distance
between two baselines. In FT2, i've seen some people use some factor of
face->size->metrics->height for that. Or perhaps FT_FaceRec.height, although
I'm not sure how that is different from the other height field.
From FT_FaceRec docs:
height - The face's height is the vertical distance from one baseline to the
next when writing several lines of text. Its value is always positive,
expressed in font units. The value can be computed as
`ascender+descender+line_gap' where the value of `line_gap' is also called
`external leading'.
How can I calculate this height in FT1?
Cheers,
Rob
--
Gods don't kill people, people with gods kill people.
- [Freetype] Line space calculation in FT 1,
Rob Kramer <=