[cairo-commit] pycairo/examples warpedtext.py,1.4,1.5

Steve Chaplin commit at pdx.freedesktop.org
Wed Apr 6 19:09:59 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples
In directory gabe:/tmp/cvs-serv16838/examples

Modified Files:
	warpedtext.py 
Log Message:
SC 2005/04/07

Index: warpedtext.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/warpedtext.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- warpedtext.py	4 Apr 2005 13:51:18 -0000	1.4
+++ warpedtext.py	7 Apr 2005 02:09:57 -0000	1.5
@@ -57,6 +57,7 @@
 ctx.set_rgb_color(1,1,1)
 
 # spiral text
+ctx.select_font("Sans")
 ctx.scale_font(80)
 ctx.move_to(0, 0)
 ctx.text_path("pycairo - " + "spam " * 5)
@@ -78,6 +79,7 @@
 text = "I am curly :)"
 ctx.text_path(text)
 textwidth, textheight = ctx.text_extents(text)[2:4]
+
 def curl(x, y):
 	xn = x - textwidth/2
 	#yn = y - textheight/2




More information about the cairo-commit mailing list