Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6223022

'8' in 11pt Tahoma font is not rendered properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 1.4.0, 1.4.2, 6
    • client-libs
    • 2d
    • b28
    • generic, x86
    • generic, windows_xp
    • Verified

        FULL PRODUCT VERSION :
        java version "1.4.2_05"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
        Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]


        A DESCRIPTION OF THE PROBLEM :
        The character '8' is not rendered properly when using Tahoma plain 11 pt font (corresponds to Windows "native" font Tahoma 8).


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.awt.*;
        import javax.swing.*;

        public class TahomaFontTest extends JFrame
        {
           public TahomaFontTest()
           {
              JTextField tf = new JTextField("88888");
              tf.setFont(new Font("Tahoma", Font.PLAIN, 11));
              getContentPane().add(tf);
              pack();
              setVisible(true);
           }
           
           public static void main(String[] args)
           {
              try
              {
                 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              }
              catch(Exception e)
              {
                 e.printStackTrace();
              }
              new TahomaFontTest();
           }
        }

        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Use JRE 1.3.x :(
        ###@###.### 2005-1-28 19:09:19 GMT

              igor Igor Nekrestyanov (Inactive)
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: