[cairo] Pango and outlines
Donn
donn.ingle at gmail.com
Mon Dec 17 08:55:40 PST 2007
Right, ce'st moi.
This is my basic Python Pango Cairo recipe:
text = u"Magic!"
cr.move_to( 0,0 )
font="Sans"
markup = '''<span font_desc="%s" size="32000"><b>%s</b></span>''' % (font,
text)
pcr = pangocairo.CairoContext( cr )
layout = pcr.create_layout()
layout.set_markup( markup )
layout.set_alignment ( pango.ALIGN_RIGHT )
pcr.show_layout( layout )
I'm trying to get the text written with an outline only - later with a
different coloured fill. Right now it seems it's fill only. Is there some way
to capture the show_layout into a path that can be taken further?
\d
More information about the cairo
mailing list