Re: Pango, set height in pixels
- From: Dennis Bjorklund <db zigo dhs org>
- To: Havoc Pennington <hp redhat com>
- Cc: <gtk-list gnome org>
- Subject: Re: Pango, set height in pixels
- Date: Sun, 13 Jan 2002 21:08:50 +0100 (CET)
On 13 Jan 2002, Havoc Pennington wrote:
> pango_font_description_set_size() which sets it in pango units.
>
> The PANGO_PIXELS macro converts from pango units to pixels. To go from
> pixels to pango units you just do "pixels * PANGO_SCALE".
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)
Is this not points as in 1/72 inch? Every monitor is not 72dpi, or does
pango always use 72 dpi?
But it seems to work (my monitor is 90dpi), I just didn't think it was
pixels when I read it.
--
/Dennis
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]