[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
- Previous message: [cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Matrix.c,
1.3, 1.4 org_freedesktop_cairo_Context.c, 1.1, 1.2
- Next message: [cairo-commit] cairo-java/src/java/org/freedesktop/cairo
Matrix.java, 1.4, 1.5 Distance.java, 1.1, 1.2 Context.java, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Matrix.c,
1.3, 1.4 org_freedesktop_cairo_Context.c, 1.1, 1.2
- Next message: [cairo-commit] cairo-java/src/java/org/freedesktop/cairo
Matrix.java, 1.4, 1.5 Distance.java, 1.1, 1.2 Context.java, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list