-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0
-
x86
-
solaris_2.6
Font("serif",Font.ITALIC,32) is not appearing italic on winNT. To reproduce compile & run this source code :
import java.awt.*;
public class drawStr extends Canvas {
public drawStr() {
setBackground(Color.white);
}
public void paint(Graphics g) {
g.setFont(new Font("serif", Font.ITALIC, 32));
g.drawString(g.getFont().getName(), 100, 100);
}
public static void main(String s[]) {
Frame f = new Frame("Java 2D Demo - drawStr");
f.add("Center", new drawStr());
f.pack();
f.setSize(new Dimension(400,300));
f.show();
}
}
Also a problem on win95.
brian.lichtenwalter@Eng 1998-06-05
import java.awt.*;
public class drawStr extends Canvas {
public drawStr() {
setBackground(Color.white);
}
public void paint(Graphics g) {
g.setFont(new Font("serif", Font.ITALIC, 32));
g.drawString(g.getFont().getName(), 100, 100);
}
public static void main(String s[]) {
Frame f = new Frame("Java 2D Demo - drawStr");
f.add("Center", new drawStr());
f.pack();
f.setSize(new Dimension(400,300));
f.show();
}
}
Also a problem on win95.
brian.lichtenwalter@Eng 1998-06-05
- duplicates
-
JDK-4146107 Font("sanserif",Font.BOLD,12) appearing italic on winNT w/ Fonts.Outline demo
-
- Closed
-