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

CSS and single quotes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0
    • javafx
    • all

      If I apply this style setting
      -fx-font: 30 'Arial Black';
      to a label, for example, then the size is set correctly but the font familiy is silently ignored.
      If I however write it like this
      -fx-font: 30 "Arial Black";
      both, the size and the font family, are set correctly.

      This raises two questions:
      Why is the string in single quotes not accepted and why is there no error indication?
      The CSS documentation clearly sais:
      "Strings can either be written with double quotes or with single quotes."

            dgrieve David Grieve
            dpausjfx Dr. Michael Paus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: