JDK-1235434 : fp.bugs 3107 Solaris italic font Alaris display not correct
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1996-01-24
  • Updated: 1997-10-27
  • Resolved: 1997-10-27
Related Reports
Duplicate :  
Description
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>