[cairo-commit] cairo-java/test/snippets Snippets.java,1.4,1.5

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/snippets
In directory gabe:/tmp/cvs-serv15985/test/snippets

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

Index: Snippets.java
===================================================================
RCS file: /cvs/cairo/cairo-java/test/snippets/Snippets.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Snippets.java	3 May 2005 01:36:16 -0000	1.4
+++ Snippets.java	6 May 2005 13:22:01 -0000	1.5
@@ -400,7 +400,7 @@
 
 		cr.selectFontFace("Sans", FontSlant.NORMAL, FontWeight.NORMAL);
 		cr.setFontSize(0.2);
-		TextExtents extents = cr.getTextExtents("cairo");
+		TextExtents extents = cr.textExtents("cairo");
 		double x = 0.5 -((extents.getWidth()/2.0) + extents.getXBearing());
 		double y = 0.5 -((extents.getHeight()/2.0) + extents.getYBearing());
 
@@ -430,7 +430,7 @@
 		cr.selectFontFace("Sans", FontSlant.NORMAL, FontWeight.NORMAL);
 
 		cr.setFontSize(0.4);
-		TextExtents extents = cr.getTextExtents(utf8);
+		TextExtents extents = cr.textExtents(utf8);
 
 		cr.moveTo(x,y);
 		cr.showText(utf8);




More information about the cairo-commit mailing list