Re: How to create a PangoCairoFontMap?

On Fri, 2007-12-07 at 11:48 +0200, Cosmin Humeniuc wrote:
> Hello,


> I need to render some unantialiased text with pangocairo. The
> pango_cairo_context_set_font_options function would do just fine, but
> I'm not sure how to get a PangoContext for the first argument. The
> pango_cairo_font_map_create_context would need a PangoCairoFontMap,
> and I could only find functions that create PangoFontMap structures.
> Does anyone know how to create a PangoCairoFontMap?

Use pango_cairo_font_map_get_default().

> Thanks,
> Cosmin


...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning.  -- Matt Welsh

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