[Top][All Lists]

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

Re: [ft-devel] Generating Windows text metrics

From: Tony Smith
Subject: Re: [ft-devel] Generating Windows text metrics
Date: Wed, 23 Jan 2013 10:35:21 -0000

That looks to be exactly the information I was looking for.

-----Original Message-----
From: Huw Davies [mailto:address@hidden 
Sent: 23 January 2013 09:23
To: Tony Smith
Cc: address@hidden
Subject: Re: [ft-devel] Generating Windows text metrics

On Tue, Jan 22, 2013 at 04:03:20PM +0000, Tony Smith wrote:
> In the Windows API function ::CreateFont the height can be passed in two ways.
> A negative height gives metrics for fit to character height and a positive
> heights means fit to cell height.
> Here is the MSDN page for some more details.
> dd183499%28v=vs.85%29.aspx
> Can Freetype also generate text metrics for both fit to character height and
> fit to cell height?

Have a look at how it's done in Wine (

load_VDMX is used if the font has a VDMX table:

otherwise the fallback calc_ppem_for_height:

Elsewhere in that file you'll find how the rest of the metrics are

This e-mail message has been scanned and cleared by Postini / Google Message 
Security and the UNICOM Global security systems. This message is for the named 
person's use only. If you receive this message in error, please delete it and 
notify the sender. 

reply via email to

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