JDK-1235430 : fp.bugs 3107 WinNT/95 bold font Alaris display not correct
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0,1.1.3
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_2.5.1,windows_nt
  • CPU: x86,sparc
  • Submitted: 1996-01-24
  • Updated: 1999-05-27
  • Resolved: 1999-05-27
Related Reports
Duplicate :  
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>

Comments
EVALUATION Name: rrT76497 Date: 05/06/98 Evaluated K.Suseendran, ###@###.### 04/29/98 Unable to reproduce the bug "not getting BOLD" in Solaris Ver 2.5 JDK1.2beta3, JDK1.1.5 and the bug but exists in win95, winNT JDK1.2beta3. Unable to reproduce the bug "not getting ITALICS" in Solaris Ver 2.5 JDK1.2beta3, win95,winNT JDK1.1.5, JDK1.2beta3. When we set BOLD + ITALIC , it does not get bold but gets italic in Solaris Version 2.5 JDK1.2beta3, winNT JDK1.2beta3. ====================================================================== Name: rrT76497 Date: 05/06/98 Evaluated ======================================================================
11-06-2004