--- a/jdk/test/java/awt/Graphics2D/DrawString/RotTransText.java Tue May 13 16:49:21 2008 -0700
+++ b/jdk/test/java/awt/Graphics2D/DrawString/RotTransText.java Tue May 13 16:56:22 2008 -0700
@@ -38,12 +38,24 @@
public static void main(String[] args) {
+ testIt(false);
+ testIt(true);
+
+ }
+
+ public static void testIt(boolean fmOn) {
+
int wid=400, hgt=400;
BufferedImage bi =
new BufferedImage(wid, hgt, BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = bi.createGraphics();
+ if (fmOn) {
+ g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
+ RenderingHints.VALUE_FRACTIONALMETRICS_ON);
+ }
+
int x=130, y=130;
String s = "Text";