A static font (i.e. a font that will not change during the execution of the simulation) for a given view element property is specified in Ejs using three strings, separated by commas, indicating the family, style and size of the font. The style must be one of:
To specify a font that changes in run-time, you'll need to declare a variable of type Object, associate it to the corresponding element property, and then change the variable according to your program's logic. See the java.awt.Font class.