Actually the support for custom fonts was already there in CSS for the multipage dialog, but I haven't added it to the script components yet, but now it should work.
Note that you have to use a @font-face at rule that defines the custom font like this (this is somewhat standard compliant):
const var laf = Content.createLocalLookAndFeel();
laf.setInlineStyleSheet("
@font-face
{
font-family: FunkyFont;
src: url({PROJECT_FOLDER}Fonts/DigitalNormal.ttf);
}
button {
font-family: FunkyFont;
}
");
Content.getComponent("Button1").setLocalLookAndFeel(laf);
const var Label1 = Content.getComponent("Label1");
Label1.set("fontName", "FunkyFont");