SPLat Logo

# SetFont()

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

# SetFont()

Valid For #HMI
Applies To HMI430

Function Prototype

SetFont( f:"FontFilename" )

 

ParameterOptionDescription
f optional Filename of the backlight file.  If left out or if the file is missing or invalid, the default system font will be used.

Description

This instruction loads a new font for use by all subsequent HMI instructions.  The font will remain in effect until the next call to SetFont().

Font files are created with the SPLat fontmake Windows utility.  Any OpenType or TrueType font may be used, including monospace and proportional fonts.

SPLat/PC does not download fonts to the HMI.  Instead, you must manually place font files in the HMI filesystem, in the Internal Storage folder.  Downloading a new program to the HMI from SPLat/PC will not erase any image or font files in the HMI.

Examples

   #HMI SetFont( f:"heading.fon" )

Sets the font to "headings.fon".