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

CSS fonts not applied correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7u40
    • javafx
    • Test case for Windows, but has been also reproduced on Mac with a different font name.

      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).

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

              Created:
              Updated:
              Resolved:
              Imported: