Re: Pango, set height in pixels
- From: Havoc Pennington <hp redhat com>
- To: Dennis Bjorklund <db zigo dhs org>
- Cc: <gtk-list gnome org>
- Subject: Re: Pango, set height in pixels
- Date: 13 Jan 2002 13:02:21 -0500
Dennis Bjorklund <db zigo dhs org> writes:
> How do I set the font size to a number of pixels high? I can only find
> 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".
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]