DEFINEFONT #Nbr
hex [[ hex[…]
hex [[ hex[…]
END DEFINEFONT
This will define an embedded font which can be used alongside or to replace the built in font(s) used on an attached LCD panel. These work exactly same as the built in fonts (ie, selected using the FONT command or specified in the TEXT command).
‘#Nbr’ is the font’s reference number (from 1 to 16). It can be the same number as a built in font and in that case it will replace the built in font. Each ‘hex’ must be exactly eight hex digits and be separated by spaces or new lines from the next.
Multiple lines of ‘hex’ words can be used with the command terminated by a matching END DEFINEFONT.
Multiple embedded fonts can be used in a program with each defining a different font with a different font number.
During execution MMBasic will skip over any DEFINEFONT commands so they can be placed anywhere in the program.
Any errors in the data format will be reported when the program is saved.
See also:
FONT
TEXT
Applies to:
CGMICROBOARD
CGMICROMITE
Leave a Reply