[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Line space calculation in FT 1
From: |
Rob Kramer |
Subject: |
Re: [Freetype] Line space calculation in FT 1 |
Date: |
Fri, 23 Apr 2004 22:46:38 +0800 |
User-agent: |
KMail/1.6.1 |
Hi Antoine,
On Friday 23 April 2004 02:46 am, Antoine Leca wrote:
> > How do I convert the 1697 to a number of pixels?
>
> As with any quantity: dividing with EM and multiplying the point size
> (really the other way ;-)).
Point size, as in 15 point font?
I tried according to the FT2 docs, design metrics -> device metrics (TrueType
only),
(y_ppem / units_per_em) * design_y
(20 / 2048) * 1697 = 16.57
And 16 pixels is barely high enough to fit a glyph in, so the lines would be
very close together indeed.
Am I doing something obviously wrong? :)
Thanks again for your help,
Rob
--
Gods don't kill people, people with gods kill people.