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

CSS Fonts do not take effect on close/open

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u40
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac OS X 10.8.2 / jdk 1.7.0_10

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: