pixie.heading()
Syntax
heading(txt, x, y, width, pt=30, slant=0.0)
Description
Draws the txt string in Pixie handwriting, positioned at x, y with the given width, font size pt. The slant argument controls the speed at which Pixie writes. The lineheight setting of spacing() is taken into account. The text is drawn in color(). The heading command returns a (x,y) 2-tuple with the position of the paragraph's end.
Example
pixie = ximport("pixie")
txt = "Fat trendy Pixie headers!"
pixie.heading(txt, 100, 100, 200, pt=15)