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

fp.bugs 4173 Win32 font of a component not set to the requested font

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.5
    • Not verified

       From: ###@###.###
      This does not look like form output to me.


      Hi,

      There is a bug in the Win32 JDK 1.0 and 1.0.1 that does not set the
      font of a component to the requested font. You can verify this easily
      by looking at the default font used for components in a Java
      application. The default font should be the "Dialog" font which
      corresponds to the Win32 MS Sans Serif font. If you look at the
      actual font used you can see that it clearly has Serifs and resembles
      a Times Roman font.

      The actual bug is in awt.cpp where the component font is created
      using the Java font name rather than the platform specific name.

      Line # 741 of awt.cpp is:
        pFont = AwtFont::Create(buffer, fC->style, fC->size);

      It should be:
        pFont = AwtFont::Create(AwtFont::PINameToPSName(buffer), fC->style,
        fC->size);

      This bug has several side effects like the FontMetrics not being
      accurate for any font other than Helvetica. The correction of this
      bug is very important to us as it affects the quality of our Java
      development tool JFactory. If you have a time frame for correction
      of the bug, please let us know.

      Thanks,

      Jeff Rayfield
      Tech Lead, Factory
      Rogue Wave Software
      Internet: ###@###.###
      Phone: (704) 549-0484

            flar Jim Graham
            bhagen Benjamin Hagen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: