freetype-devel
[Top][All Lists]
Advanced

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

Calculating Line Advance


From: Feinberg, Matthew
Subject: Calculating Line Advance
Date: Fri, 7 Jan 2000 09:08:50 -0500

This is probably a naive question, but how does one go about calculating
line advance for a TrueType font at a given point size and DPI.  That
is, number of pixel to add to the Y coordinate of the baseline of a line
of text to get the Y coordinate of the baseline of the next line of
text.

I've tried several different methods of calculating this, none of which
seem to match anything that Windows does.

Does anyone know what the correct calculation is?

--
Matthew A. Feinberg
Lead Programmer
Catharon Productions, Inc.

http://www.catharon.com

E-Mail:  address@hidden
ICQ:  3494579
Tel: (518)392-9003
Fax: (518)392-6444

The best way to have a good idea is to have lots of ideas. -Linus
Pauling




reply via email to

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