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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx1.3
    • Fix Version/s: fx2.0
    • Component/s: javafx

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              dgrieve David Grieve
              Reporter:
              rbair Richard Bair
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: