Screen.setFontSize()
Overview
Sets the current font size for the native emulation screen. Only valid for TE hosts in native mode.
This change is applied to all screens for the current session. Any new sessions will use the size specified in the host profile. (In the Velocity Console, go to Settings > Native Theme > Screen Properties > Size.)
While Velocity does its best to honor your settings, many devices will interpret a font size depending on the screen resolution, the distance users are expected to view the screen from, or other factors. The same font size may appear different on different devices.
Added in version 2.1.45
Use Case
You would like to change the current font size of the text on the emulation screen.
Format
Screen.setFontSize(fontSize);
Parameter | Description | Type | Required | Notes |
---|---|---|---|---|
fontSize | The font size in points. | Number | Required | Valid values: 6-72 |
Example
/* Set the font size of the native emulation screen to 32 pt */
Screen.setFontSize(32);