如何更改 css 上的字体?

How to change font on css?

我正在尝试从 jfxtras (javafx) 操作 Agenda 中的字体。

我有一个链接到它的 css 文件。

我也想出了如何把它变成黑色和粗体。

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

但我不知道如何将字体更改为 Arial。

谢谢,

浏览器将尝试使用第一种字体、第二种字体,如果找不到,它将使用无衬线系统字体

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