fontSize

Type: Real

Availability: Read or write at any time

The fontSize property contains the size of the font to be used for text displayed in a control.

The fontSize property of the Control class is defined for all controls, but it has no meaning in some cases. For example, a ScrollBar control has no text, and therefore font is not relevant.

Use the fontSize property to format text in the required font size. The default value is determined by the system. To change the default, specify the size of the font in points.

For the Table class, the accessMode, accessedSheet, accessedRow, accessedColumn, or accessedCell property determines whether the fontSize property for the current sheet, cell, column, or row is being accessed.

For the JadeTextEdit control, the clearAllStyles method copies the value of this property to the default text style; that is, STYLE_DEFAULT (32).

Changing the sheet font causes the default table row height to be changed. Changing the font for a cell or row causes the current row height to change, unless the rowHeight property has been set for the row. Changing the font for a column causes all rows not having the rowHeight property set to have at least the font height size.

The font defaults to the application font if the fontName property for the control is set to Default during painting or to an empty string at run time. The fonts that are available in JADE vary, according to your system configuration, display devices, and printing devices.

Use the Control class setFontProperties method to change the fontSize, fontBold, and fontName properties at the same time.