[cairo] Text Antialiasing

Behdad Esfahbod behdad at behdad.org
Thu Feb 22 20:26:56 PST 2007


On Thu, 2007-02-22 at 20:37 -0500, Tim Flink wrote:
> 
> fo.set_hint_style(5)
> fo.set_antialias(cairo.ANTIALIAS_DEFAULT)
> xbearing, ybearing, width, height, xadvance, yadvance =
> cr.text_extents(text)

You've got to do cr.set_font_options(fo) before measuring text.

-- 
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