fp.bugs 3107 Arial font does not bold on Win95, does not italic on Solaris
example applet with test HTML text is below.
Please contact hagen@scndprsn regarding this bug, it's not Vijay's!
____Begin Example Applet_____
import java.awt.*;
import java.awt.Font;
import java.awt.FontMetrics;
import java.applet.*;
import java.*;
import java.io.*;
import java.util.*;
import java.lang.*;
//
// Test program to demonstrate incorrect font display
//
public class test extends Applet
{
public void init()
{
}
// only when stand alone
public static void main(String args[])
{
Frame f = new Frame("FutureTense");
test view = new test();
view.init();
view.start();
f.add("Center", view);
f.show();
}
public void start()
{
}
public void stop()
{
}
public void destroy()
{
}
public void paint(Graphics g)
{
// 10 PT ARIAL
// plain
Font font = new Font("Arial", Font.PLAIN, 10);
g.setFont(font);
String outStr = "plain 10pt Arial";
g.drawString(outStr, 10, 10);
// bold
font = new Font("Arial", Font.BOLD, 10);
g.setFont(font);
outStr = "bold 10pt Arial";
g.drawString(outStr, 10, 30);
// italic
font = new Font("Arial", Font.ITALIC, 10);
g.setFont(font);
outStr = "italic 10pt Arial";
g.drawString(outStr, 10, 50);
// 11 PT ARIAL
// plain
font = new Font("Arial", Font.PLAIN, 11);
g.setFont(font);
outStr = "plain 11pt Arial";
g.drawString(outStr, 100, 10);
// bold
font = new Font("Arial", Font.BOLD, 11);
g.setFont(font);
outStr = "bold 11pt Arial";
g.drawString(outStr, 100, 30);
// italic
font = new Font("Arial", Font.ITALIC, 11);
g.setFont(font);
outStr = "italic 11pt Arial";
g.drawString(outStr, 100, 50);
}
}
_____Begin Applet html_____
<HTML>
<HEAD>
<title>Thisbug</title>
</HEAD>
<BODY>
<hr>
<applet code=test.class width=500 height=300>
</applet>
<hr>
</BODY>
</HTML>
example applet with test HTML text is below.
Please contact hagen@scndprsn regarding this bug, it's not Vijay's!
____Begin Example Applet_____
import java.awt.*;
import java.awt.Font;
import java.awt.FontMetrics;
import java.applet.*;
import java.*;
import java.io.*;
import java.util.*;
import java.lang.*;
//
// Test program to demonstrate incorrect font display
//
public class test extends Applet
{
public void init()
{
}
// only when stand alone
public static void main(String args[])
{
Frame f = new Frame("FutureTense");
test view = new test();
view.init();
view.start();
f.add("Center", view);
f.show();
}
public void start()
{
}
public void stop()
{
}
public void destroy()
{
}
public void paint(Graphics g)
{
// 10 PT ARIAL
// plain
Font font = new Font("Arial", Font.PLAIN, 10);
g.setFont(font);
String outStr = "plain 10pt Arial";
g.drawString(outStr, 10, 10);
// bold
font = new Font("Arial", Font.BOLD, 10);
g.setFont(font);
outStr = "bold 10pt Arial";
g.drawString(outStr, 10, 30);
// italic
font = new Font("Arial", Font.ITALIC, 10);
g.setFont(font);
outStr = "italic 10pt Arial";
g.drawString(outStr, 10, 50);
// 11 PT ARIAL
// plain
font = new Font("Arial", Font.PLAIN, 11);
g.setFont(font);
outStr = "plain 11pt Arial";
g.drawString(outStr, 100, 10);
// bold
font = new Font("Arial", Font.BOLD, 11);
g.setFont(font);
outStr = "bold 11pt Arial";
g.drawString(outStr, 100, 30);
// italic
font = new Font("Arial", Font.ITALIC, 11);
g.setFont(font);
outStr = "italic 11pt Arial";
g.drawString(outStr, 100, 50);
}
}
_____Begin Applet html_____
<HTML>
<HEAD>
<title>Thisbug</title>
</HEAD>
<BODY>
<hr>
<applet code=test.class width=500 height=300>
</applet>
<hr>
</BODY>
</HTML>
- duplicates
-
JDK-1235430 fp.bugs 3107 WinNT/95 bold font Alaris display not correct
-
- Closed
-