[cairo-commit] pycairo/examples/gtk hangman.py, 1.2, 1.3 text.py, 1.2, 1.3

Steve Chaplin commit at pdx.freedesktop.org
Fri Apr 8 20:57:08 PDT 2005


Committed by: stevech1097

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

Modified Files:
	hangman.py text.py 
Log Message:
SC 2005/04/08

Index: hangman.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/hangman.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- hangman.py	19 Mar 2005 11:27:21 -0000	1.2
+++ hangman.py	9 Apr 2005 03:57:05 -0000	1.3
@@ -82,7 +82,7 @@
     def man_hung():
         return len(letters_guessed_wrong) == body_parts
 
-    ctx.scale_font(10)
+    ctx.set_font_size(10)
     ctx.set_rgb_color(0,0,0)
     for idxLetter in range(len(word_chosen)):
         #print "Examining letter: " + word_chosen[idxLetter]

Index: text.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/text.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- text.py	19 Mar 2005 11:27:21 -0000	1.2
+++ text.py	9 Apr 2005 03:57:05 -0000	1.3
@@ -12,8 +12,8 @@
     ctx.set_line_width(6)
     ctx.set_tolerance(.1)
 
-    ctx.select_font('sans-serif')
-    ctx.scale_font(48)
+    ctx.select_font_face('sans-serif')
+    ctx.set_font_size(48)
     (x, y, width, height, dx, dy) = ctx.text_extents('Hello World')
 
     ctx.translate (100, 100)




More information about the cairo-commit mailing list