freetype
[Top][All Lists]
Advanced

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

Re: [ft] Get line height


From: Lawrence D'Oliveiro
Subject: Re: [ft] Get line height
Date: Mon, 3 Jul 2017 19:47:15 +1200

On Mon, 3 Jul 2017 09:16:42 +0200, Satz Klauer wrote:

> I'm a bit lost with the description of different heights in a font. So
> when I want to get the nominal height of a fonts line to calculate the
> distance which is needed for a carriage return/line break to continue
> in next line - which parameter/structure member is responsible for
> this?

This would be the “height” in the Size_Metrics fields.

Bear in mind this may be less than the ascender + descender. It is a
value chosen by the font designer for optimum line spacing.

It is quite common to adjust this value when laying out text, e.g. use
a bigger value for “loose leading”, or a smaller one for “tight
leading”. It depends on the effect you want to achieve.

(That’s ”leading” as in “lead” the metal, not as in the opposite of
“follow”.)



reply via email to

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