Re: Pango, set height in pixels



On 13 Jan 2002, Havoc Pennington wrote:

> 
> Dennis Bjorklund <db zigo dhs org> writes: 
> > The doc of pango_font_description_set_size () says
> > 
> > size : the size for the font description in pango units. (PANGO_SCALE 
> > pango units equals one point)
> 
> PANGO_SCALE pango units equals one "device unit" which for the screen
> is pixels and for printed output would probably be points. The docs
> there are broken, yeah. I'll fix them.

No. This is wrong. All Pango units are in points, but scaled by 
PANGO_SCALE (1024) in order to support fractional values in an integer 
type.

There is no way to specify the pixel size of a font in pango.

/ Alex




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