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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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)

    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
        2. MyStyles.css
          0.1 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: