freetype
[Top][All Lists]
Advanced

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

Re: [ft] Vert advance on line break


From: Werner LEMBERG
Subject: Re: [ft] Vert advance on line break
Date: Fri, 23 Jan 2009 07:23:27 +0100 (CET)

> My quesiton is: How do I know how much to increase my Y position by
> for a new line (line break)?  I tried using
> [i]face->size->metrics.height[/i], but this seemed far too steep for
> some fonts (almost like the font was double-spaced), and simply
> doesn't exist at all (is zero) for many, many fonts such as Courier,
> which makes it completely useless for me.

>From the documentation of FT_FaceRec:

  height        

    The height is the vertical distance between two consecutive
    baselines, expressed in font units.  It is always positive.  Only
    relevant for scalable formats.

Or do you mean something different?


      Werner




reply via email to

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