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

Adding a font via an http url no longer seems to work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • javafx
    • None

      Ensemble8 has the following code, which use to result in use of fonts from the internet:

      When Ensemble8 is starting up, it uses the following code:

         List<String> stylesheets = new ArrayList<>(5);
         ...
         stylesheets.add("http://fonts.googleapis.com/css?family=Bree+Serif");
         ...
         scene.getStylesheets().setAll(stylesheets);

      And then in the CSS file, we have entries like:
         .sample-page-box-title {
             -fx-font-family: "Bree Serif";
             -fx-font-size: 16;
             -fx-text-fill: #e1731c;
         }

      But we don't seem to pick up the Bree Serif font any more, and we used to.

      In addition, we get the following warning:

      "com.sun.javafx.css.parser.CSSParser reportException
      WARNING: Please report java.lang.IllegalArgumentException at:"

            dgrieve David Grieve
            dmasada Debra Masada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: