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

[macos] Wrong font chosen after fix for JDK-8234916

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • jfx14
    • javafx
    • macOS 10.13.2

      The following code when run on macOS 10.13 will select a bad font leading to unreadable text:

      Font font = new Font(48.0f)

      To reproduce this run the attached test program:

      java MacFontBug

      The program displays three strings, with three different fonts: the default System font, a newly-created 16 pt font, and a newly-created 48-point font. The first two display fine, but the third does not.

      See the attached screen shot.

      This is a regression introduced by the fix for JDK-8234916.

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: