[cairo-commit] cairo-java/test/kapow Kapow.java,1.10,1.11

Jeffrey Morgan commit at pdx.freedesktop.org
Sun Apr 10 17:47:23 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/test/kapow
In directory gabe:/tmp/cvs-serv10446/test/kapow

Modified Files:
	Kapow.java 
Log Message:
Changes to match upstream API changes

Index: Kapow.java
===================================================================
RCS file: /cvs/cairo/cairo-java/test/kapow/Kapow.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Kapow.java	2 Apr 2005 21:07:24 -0000	1.10
+++ Kapow.java	11 Apr 2005 00:47:21 -0000	1.11
@@ -72,8 +72,8 @@
 		cr.setRGBColor(black);
 		cr.stroke();
 
-		cr.selectFont("Sans", FontSlant.NORMAL, FontWeight.BOLD);
-		cr.scaleFont(50);
+		cr.selectFontFace("Sans", FontSlant.NORMAL, FontWeight.BOLD);
+		cr.setFontSize(50);
 		TextExtents extents = cr.getTextExtents(text);
         Point point = new Point();
 		point.setX(IMAGE_WIDTH / 2 - (extents.getWidth() / 2 + extents.getXBearing()));




More information about the cairo-commit mailing list