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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • 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)

      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]

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

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

              Created:
              Updated:
              Resolved:
              Imported: