Re: From Luca, Maths In AbiWord.

From: Tomas Frydrych <tomasfrydrych_at_yahoo.co.uk>
Date: Tue May 17 2005 - 14:44:01 CEST

J.M. Maurer wrote:
>>The AbiWord graphics class allows one to retrieve the following
>>information for a character m_ch:
>>
>>* width (graphics->measureUnRemappedChar(m_ch))
>>* font ascent (graphics->getFontAscent())
>>* font descent (graphics->getFontDescent()))
>>
>>and these are, if I get the terminology right, in device units.
>
>
> This might be wrong, and this irritates me as well: those return
> something that are neither logical, or device usings, but something in
> between. Will look at it tonight

These are in font units, which are identical to layout units at 100%
zoom (layout units are always scaled by the zoom factor). There are
special ftlu() and ftluD() functions for converting these to layout units.

Tomas
Received on Tue May 17 14:44:13 2005

This archive was generated by hypermail 2.1.8 : Tue May 17 2005 - 14:44:14 CEST