[cairo-commit] cairo-java/test/kapow Kapow.java,1.13,1.14

Jeffrey Morgan commit at pdx.freedesktop.org
Fri May 6 06:22:03 PDT 2005


Committed by: kuzman

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

Modified Files:
	Kapow.java 
Log Message:
contuned API cleanup

Index: Kapow.java
===================================================================
RCS file: /cvs/cairo/cairo-java/test/kapow/Kapow.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Kapow.java	3 May 2005 01:36:15 -0000	1.13
+++ Kapow.java	6 May 2005 13:22:01 -0000	1.14
@@ -73,7 +73,7 @@
 
 		cr.selectFontFace("Sans", FontSlant.NORMAL, FontWeight.BOLD);
 		cr.setFontSize(50);
-		TextExtents extents = cr.getTextExtents(text);
+		TextExtents extents = cr.textExtents(text);
         Point point = new Point();
 		point.setX(IMAGE_WIDTH / 2 - (extents.getWidth() / 2 + extents.getXBearing()));
 		point.setY(IMAGE_HEIGHT / 2 - (extents.getHeight() / 2 + extents.getYBearing()));




More information about the cairo-commit mailing list