Using Fonts with Script for Views

In Script for Views, fonts are usually identified by character strings with the following format:

%fontName-fontSize-fontFlags

fontName is the name of the font family, such as Courier, Helvetica or Times. fontSize is an integer that indicates the font size. fontFlags is a series of characters that indicates the font style: B for Bold, I for Italic and U for Underlined. Leave this field empty if you want the font to appear plain.

For example, to change the font of an IlvLabel, type the following:

myLabel.font = "%times-16-I";