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

CSS fonts not applied correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P3
    • None
    • 7u40
    • javafx
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: