SPLat Logo

Fontmake

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

Fontmake

fontmake.exe is a utility for creating font files that can be used with the HMI430.

Fontmake runs from the Windows command line.  It will convert any TrueType or OpenType font into a ".fon" file that holds one size of the specified font.  Thus you will need to create a separate file for each size you require.

To use the .fon files created by fontmake, drag them to the Internal Storage folder in your controller, then use SetFont() to display text using the font.  Ensure the full length (including the extension) of the .fon file name remains under 32 characters.

Download fontmake.exe

These font files will not work on SimpleHMI for Android or Windows, they can only be used on SPLat touch screen controllers.

Arguments

fontmake takes the following arguments:

   fontmake.exe -s nn [-o output_file] [-m charmap_file] [-h] [-v] [-n] input_font_file

Where:

Example

   fontmake.exe -s 12 -o ../fonts/ "/Windows/Fonts/arial.ttf"

Creates ../fonts/arial_12.fon.  Drag this file to the Internal Storage folder in your controller, then use #HMI SetFont( "arial_12.fon" ) to display text using the font.