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

CSS Fonts do not take effect on close/open

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 8
    • 7u40
    • javafx
    • Mac OS X 10.8.2 / jdk 1.7.0_10

      If I create a label and assign it a style class with a different font and THEN add style sheets using the Preview -> Scene Style Sheets menu, the font appears correctly. If I close the window and then reopen it, the font reverts to the default font. The style sheets are still shown in the Preview -> Scene Style Sheets -> Remote a Style Sheet menu. The CSS analyzer shows the correct font is being chosen. It just doesn't show the label in the right font.

      If I remove the style sheets and re add them, the fonts then show correctly again. I am using two style sheets, one with a .root class to control all fonts in the app.

        1. bug.css
          0.1 kB
        2. bug.fxml
          0.5 kB

            mchicharro Moises Chicharro
            cstanford Curtis Stanford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: