Re: How to create a PangoCairoFontMap?
- From: "Cosmin Humeniuc" <cosmin mandrivausers ro>
- To: "Behdad Esfahbod" <behdad behdad org>
- Cc: gtk-i18n-list gnome org
- Subject: Re: How to create a PangoCairoFontMap?
- Date: Wed, 12 Dec 2007 08:46:48 +0200
Thanks, Behdad, it does work now (and I also understand better how it works :-).
Cosmin
On 12/12/07, Behdad Esfahbod <behdad behdad org> wrote:
> On Tue, 2007-12-11 at 09:33 +0200, Cosmin Humeniuc wrote:
> >
> > map = pango_cairo_font_map_get_default();
> > pango = pango_cairo_font_map_create_context((PangoCairoFontMap*)map);
> > pango_cairo_context_set_font_options(pango, options);
>
> You are creating a PangoContext called pango, set font options on it,
> and then not use it. Change that for what
> pango_layout_get_context(layout) returns. Fix that and it works.
>
>
> > pango_layout_context_changed(layout);
> > pango_cairo_update_layout(cr, layout);
>
>
> --
> behdad
> http://behdad.org/
>
> ...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]