[cairo] cairo pango font hinting

Behdad Esfahbod behdad at behdad.org
Tue Jan 8 08:20:46 PST 2008


On Tue, 2008-01-08 at 06:00 -0500, Gerdus van Zyl wrote:
> ctx.set_font_options(fo)
> 
> cr = pangocairo.CairoContext(ctx)

ctx.set_font_options() is part of the cairo toy font API and ignored by
pango.  You need to set font options on the PangoContext underlying the
layout.  That is, when you have your pango.Layout, do:

pangocairo.context_set_font_options (layout.get_context(), fo)


-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list