blob: 319bee4defd95064726c47783bd8a2d20e4f0eea [file] [log] [blame]
<test title="Font Testing">
<description>
This test validates the convertion of Java 2D GlyphVectors
to SVG shapes.
</description>
<javaCode>
<![CDATA[
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
// Set default font
Font font = new Font("Arial", Font.BOLD, 15);
g.setFont(font);
// Colors used for labels and test output
Color labelColor = new Color(0x666699);
g.setPaint(labelColor);
// Simple String
String text = "This is a GlyphVector";
// Get GlyphVector from from
GlyphVector gv = font.createGlyphVector(g.getFontRenderContext(),
text);
g.drawGlyphVector(gv, 30, 30);
]]>
</javaCode>
</test>