You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/05/14 08:23:43 UTC
cvs commit: xml-batik/test-sources/org/apache/batik/svggen Font1.java Font2.java GraphicObjects.java RHints.java
vhardy 01/05/13 23:23:42
Modified: test-sources/org/apache/batik/svggen Font1.java Font2.java
GraphicObjects.java RHints.java
Log:
Removed system specific Font dependency. Fix rendering hints problem in test.
Revision Changes Path
1.2 +6 -6 xml-batik/test-sources/org/apache/batik/svggen/Font1.java
Index: Font1.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/svggen/Font1.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Font1.java 2001/04/25 16:31:30 1.1
+++ Font1.java 2001/05/14 06:23:22 1.2
@@ -18,7 +18,7 @@
*
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
* @author <a href="mailto:vhardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: Font1.java,v 1.1 2001/04/25 16:31:30 cjolif Exp $
+ * @version $Id: Font1.java,v 1.2 2001/05/14 06:23:22 vhardy Exp $
*/
public class Font1 implements Painter {
public void paint(Graphics2D g) {
@@ -26,7 +26,7 @@
RenderingHints.VALUE_ANTIALIAS_ON);
// Set default font
- g.setFont(new java.awt.Font("Arial", java.awt.Font.BOLD, 12));
+ g.setFont(new java.awt.Font("sans-serif", java.awt.Font.BOLD, 12));
// Colors used for labels and test output
Color labelColor = new Color(0x666699);
@@ -88,10 +88,10 @@
//
// Font families
//
- String fontFamilies[] = { "Arial",
- "SunSansCondensed-Heavy",
- "Impact",
- "Allegro BT" };
+ String fontFamilies[] = { "Lucida Sans",
+ "Lucida Bright",
+ "Lucida Console",
+ "Lucida Sans Typewriter" };
g.setFont(defaultFont);
g.setPaint(labelColor);
1.2 +5 -5 xml-batik/test-sources/org/apache/batik/svggen/Font2.java
Index: Font2.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/svggen/Font2.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Font2.java 2001/04/25 16:31:30 1.1
+++ Font2.java 2001/05/14 06:23:25 1.2
@@ -21,7 +21,7 @@
*
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
* @author <a href="mailto:vhardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: Font2.java,v 1.1 2001/04/25 16:31:30 cjolif Exp $
+ * @version $Id: Font2.java,v 1.2 2001/05/14 06:23:25 vhardy Exp $
*/
public class Font2 implements Painter {
public void paint(Graphics2D g) {
@@ -91,10 +91,10 @@
//
// Font families
//
- String fontFamilies[] = { "Arial",
- "SunSansCondensed-Heavy",
- "Impact",
- "Allegro BT" };
+ String fontFamilies[] = { "Lucida Sans",
+ "Lucida Bright",
+ "Lucida Console",
+ "Lucida Sans Typewriter" };
g.setFont(defaultFont);
g.setPaint(labelColor);
1.2 +2 -2 xml-batik/test-sources/org/apache/batik/svggen/GraphicObjects.java
Index: GraphicObjects.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/svggen/GraphicObjects.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GraphicObjects.java 2001/04/25 16:31:31 1.1
+++ GraphicObjects.java 2001/05/14 06:23:27 1.2
@@ -19,7 +19,7 @@
*
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
* @author <a href="mailto:vhardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: GraphicObjects.java,v 1.1 2001/04/25 16:31:31 cjolif Exp $
+ * @version $Id: GraphicObjects.java,v 1.2 2001/05/14 06:23:27 vhardy Exp $
*/
public class GraphicObjects implements Painter {
public void paint(Graphics2D g) {
@@ -28,7 +28,7 @@
// Text
g.setPaint(Color.black);
- g.setFont(new Font("SunSansCondensed-Heavy", Font.PLAIN, 30));
+ g.setFont(new Font("Lucida Bright", Font.PLAIN, 20));
g.drawString("Hello SVG drawString(...)", 20, 40);
g.translate(0, 70);
1.2 +2 -2 xml-batik/test-sources/org/apache/batik/svggen/RHints.java
Index: RHints.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/svggen/RHints.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RHints.java 2001/04/25 16:31:32 1.1
+++ RHints.java 2001/05/14 06:23:28 1.2
@@ -18,7 +18,7 @@
*
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
* @author <a href="mailto:vhardy@eng.sun.com">Vincent Hardy</a>
- * @version $Id: RHints.java,v 1.1 2001/04/25 16:31:32 cjolif Exp $
+ * @version $Id: RHints.java,v 1.2 2001/05/14 06:23:28 vhardy Exp $
*/
public class RHints implements Painter {
public void paint(Graphics2D g) {
@@ -55,12 +55,12 @@
//
g.translate(0, 100);
g.setRenderingHint(antialiasKey, antialiasOn);
+ g.setRenderingHint(textAntialiasKey, textAntialiasOn);
g.setFont(defaultFont);
g.drawString("Shape antialiasing", 10, 20);
g.translate(30, 0);
g.setRenderingHint(antialiasKey, antialiasOff);
- g.setRenderingHint(textAntialiasKey, textAntialiasOff);
Ellipse2D ellipse = new Ellipse2D.Float(10, 30, 100, 30);
g.fill(ellipse);
g.translate(0, 40);
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org