Re: Pango, set height in pixels



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]