javacssfontsjavafxjfxtras

How to change font on css?


I'm trying to manipulate the font in Agenda from jfxtras (javafx).

I have a css file linked to it.

I figured out how to make it black and bold as well.

.AgendaText {
    -fx-text-fill: BLACK;
    -fx-font-weight: bold;
}

But I don't know how to change the font to say, Arial.

Thanks,


Solution

  • Browser will try to take first font, second font and if it wont be able to find it it will serve a sans serif system font

    .AgendaText {
            font-family: arial, helvetica, sans-serif
        }