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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: openjfx14
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      macOS 10.13.2

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: