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

CSS: -fx-font-size without suffix ends up with Infinity

XMLWordPrintable

      The text CSS parser fails with -fx-font-size values that don't have a suffix. The resulting Size is Infinity.

              def text = Text {
                  content: "Hello"
                  style: "-fx-font-size: 24"
              }
              scene.stylesheets = "{__DIR__}FontTest.css";
              scene.content = text;
              fireTestPulse();
              assertEquals(Font.font("Amble Cn", null, null, 24), text.font);

      (This is from the FontsTest.css file)

            dgrieve David Grieve
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: