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

createFont API fails on Windows platforms: Regression from b16 Merlin onwards

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.4.0
    • 1.3.0, 1.4.0
    • client-libs
    • 2d
    • beta
    • generic, x86
    • generic, windows_nt
    • Verified

      To reproduce the bug, run the attached program.

      createFont API returns the incorrect fontfamily name, and fontname becomes unknown.

      FontName: arial.ttf

      Output obtained with Merlin build 15:
      font is java.awt.Font[family=Arial,name=Arial,style=plain,size=1]

      Output obtained with Merlin build 16:
      font is java.awt.Font[family=Lucida Sans Typewriter,name=??,style=plain,size=1]


      This problem occurs only from build 16 onwards for windows platform.
      In Solaris, it works fine.

       

            dougfelt Doug Felt
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: