Re: Pango, set height in pixels
- From: Alex Larsson <alexl redhat com>
- To: Havoc Pennington <hp redhat com>
- Cc: Dennis Bjorklund <db zigo dhs org>, <gtk-list gnome org>
- Subject: Re: Pango, set height in pixels
- Date: Mon, 14 Jan 2002 10:22:24 -0500 (EST)
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]