Knowledge Base
Valid For#HMI
Applies ToHMI430
Function Prototype
SetFont( f:"FontFilename" )
ParameterOptionDescription
foptionalFilename 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”.