[cairo] Pango and outlines
Dominic Lachowicz
domlachowicz at gmail.com
Mon Dec 17 09:01:57 PST 2007
I had exactly this need for librsvg a while ago and I filed the
following bug against Pango. Hopefully, it's a useful starting point
for you.
http://bugzilla.gnome.org/show_bug.cgi?id=107668
On Dec 17, 2007 11:55 AM, Donn <donn.ingle at gmail.com> wrote:
> 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
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
--
Counting bodies like sheep to the rhythm of the war drums.
More information about the cairo
mailing list