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

CSS fonts not applied correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u40
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      Test case for Windows, but has been also reproduced on Mac with a different font name.

      Description

      Look at the attached project.
      The font family can be set in fontTest.css as "DejaVu Sans Condensed Bold", although the family is "DejaVu Sans Condensed".
      When used in the test case, the font is not applied.
      Now, if one load the font at start time (uncomment from FontTest.java the line) :
              Font font = new Font("DejaVu Sans Condensed Bold", 12);
      ... the font is applied correctly !
      The behvior should be consistent, and not depending on a font is loaded or not.

      This is causing troubles for users (see linked Jira).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgrieve David Grieve
                Reporter:
                jcambon Jerome Cambon
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: