SceneBuilder (by gluon) doesn't show imported fonts

Tags: java,css,fonts,scenebuilder,gluon

Problem :

im programming an app and facing some issues.

After implementing a new external font like this:

Font WoodStamp = null;
    try {
        WoodStamp = Font.loadFont(new FileInputStream(new File(getClass().getResource("/material/WoodStamp.ttf").getFile())), 10);
    } catch (FileNotFoundException e) {

i added a CSS which includes the (for example) following:

.label {
-fx-font-size: 11pt;
-fx-font-family: "WoodStamp";
-fx-text-fill: white;
-fx-opacity: 0.6;

All seems like it's working, look at my running app.

As soon as i open my SceneBuilder it first looks like this.
(above screen - sorry same picture because reputation)
but i figured out myself how to fix this "little" problem: I have to change something.
As doing so everything is showing (kinda) correctly in spite of the fonts.
See yourself in below screen of the picture.

Is there any solution to show my imported font in SceneBuilder?
Organizing labels and other things is very difficult when the wrong font is shown... :(


Solution :

Scene Builder needs to know about the font as well. Notice that as well as you need to install the font on your application to make it work, you'll need to do it as well on Scene Builder.

Since that's not possible unless you use the source code, the solution is plain simple: install the font on your system, and Scene Builder will know about it.

Once it is installed, you can open Scene Builder and look in the list of available fonts:

List of Fonts

If the font is there, you will be able to open your FXML, or you can just create a new one and use the font:

Use custom font

    CSS Howto..

    How to target this HTML in CSS?

    how jquery access dynamic css :before and apply filter:brightness [closed]

    How to completely remove borders from HTML table

    How to load an image with css using Django

    how to create inline style with :before and :after

    How to Set Banner-Like Background Image With CSS

    Show content on and off with Javascript

    How do I get a div that appears on hover to overlap all others, without using absolute positioning?

    How to properly pad an HTML link?

    JS/CSS. How do I force a child div to the bottom of it's parent div

    How do I remove this unwanted space which seems to be background repeating HTML/CSS

    How to center child divs along each side of a parent div

    How to combine wildcard and not selectors in CSS

    Show bottom of an overflow string in a div with fixed height/width?

    how to crop big image in bootstrap carousel

    How do I give a WordPress Custom Menu item an id or class for CSS targeting?

    how to vertically align the 2 different font sizes inside a single

    How to manage opacity of element INSIDE table row on HOVER this row?

    How to queue CSS3 animations when shown after page scroll (JSFiddle provided)

    How to assign CSS background image properties mixing classes and ids

    How to force a browser to show the latest changes to a CSS file?

    How to make IFrame fill width of screen

    How to put CSS and HTML in one page of code? [duplicate]

    How to hide elements in mobile devices? CSS

    How to style xml file? from xml to html using xslt and style that html using css [closed]

    How to override CSS of RichFaces components with custom CSS

    How to have a common header and footer in a HTML CSS web app?

    how to make cross browser css ellipsis?

    How to inject css in another page

    how to position/resize image after rotation using css/js so that the image is not positioned outside the div holding it or cropped out