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

CSS Font family setting is ignored and set to "System".

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac OS X 10.7.3

      java version "1.7.0_04"
      Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
      Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

      Description

      When setting the font via a CSS stylesheet, the font family seems to be ignored and defaulted to System.

      The attached test case includes a Label and a Text. The Label's font is set via CSS and the Text's font
      is set via Java. Both fonts should be identical. However, when running the test,
      the Label's font is set to "System", while the Text's font is "Veranda".
      ====
      CSS Font: Font[name=System Bold Italic, family=System, style=Bold Italic, size=24.0]
      JFX Font: Font[name=Verdana Bold Italic, family=Verdana, style=Bold Italic, size=24.0]

        Attachments

        1. Main.java
          2 kB
          Jim Clarke
        2. MyStyles.css
          0.1 kB
          Jim Clarke

          Activity

            People

            • Assignee:
              dgrieve David Grieve
              Reporter:
              jclarke Jim Clarke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: