fontName

Type: String[31]

Availability: Read or write at any time

The fontName property of the JadeSkinControl class contains the font used to display text in a control skin. This property is defined for all subclasses of the JadeSkinControl class, but it has no meaning in some cases. For example, a ScrollBar control has no text, and therefore the font is not relevant.

If the fontName property is null (the default), the control continues to use its own defined font. The skin font is ignored by any control that has its own defined font unless the skin of the control has been set by using the Control class setSkin method. At run time, the fontName property returns an empty string if the control is using the default application font. Use app.fontName to obtain the actual font name.

The default value for the fontName property is determined by the system. Fonts that are available with JADE vary, according to your system configuration, display devices, and printing devices.

Changing the fontName property to an empty string causes the control skin to use the default font. The fontBold and fontItalic properties revert to the font of the application.

If a control is using the default font for the application (that is, this property contains the null value (""), changing any font property of the control causes the control to use a local font constructed by using the application font values with the changed font attribute.