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

Support fonts known by JavaFX in WebView

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • None
    • web

      Our app comes bundled with a number of fonts used in our application. After having loaded the fonts using Font.load we can style our app with these fonts, even though they are not available by default on a customer's computer. However, using these fonts in the style sheet we set on the WebEngine of a WebView has no effect. So while this CSS has an effect

      -fx-font-family: "Open Sans Light";

      in our application style sheet, this CSS found in our WebView stylesheet has no effect:

          font-family: "Open Sans Light";

      I would argue that for WebView to be easy to use, it should handle stylesheets in much the same way of the rest of the application.

      Lacking this feature is serious as it prevents us from getting a consistent look and feel throughout the application (WebViews look different).

            peterz Peter Zhelezniakov
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: