Font in Ejs View Elements

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:

For example: Monospaced,italic,18. The default value is decided by the system. A specialized font chooser can also help you choose a given static font.

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.