FONT LOAD file$ AS #nbr
Will load the font contained in ‘file$’ and install it as font ‘nbr’ which can be any number between 3 and 10, the # symbol is optional. The font is loaded into the memory area used by arrays and strings, use the MEMORY command to check the usage of this area.
FONT UNLOAD #nbr
Removes font ‘nbr’ and free the memory used, the # symbol is optional. You cannot unload the built in fonts.
Example of using a font file to create block graphics.
Block graphic font example code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
DRIVE "B:" FONT LOAD "parts.fnt" AS #4 FONT #4 PRINT "I" PRINT "IAIBICIDIEIFIGIH" PRINT "I" FOR A = 1 to 6 PRINT "I" PRINT "IAGGGGBIIAGGGGBIIAGGGGBIIAGGGGBIIAGGGGBIIAGGGGBI" PRINT "IEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFI" PRINT "IEIABIFIIEIABIFIIEIABIFIIEIABIFIIEIABIFIIEIABIFI" PRINT "IEICDIFIIEICDIFIIEICDIFIIEICDIFIIEICDIFIIEICDIFI" PRINT "IEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFIIEIIIIFI" PRINT "ICHHHHDIICHHHHDIICHHHHDIICHHHHDIICHHHHDIICHHHHDI" PRINT "I" NEXT A |
Font definition file “parts.fnt” for example:
8,8,65,73
'A
********
*****
**
**
**
*
*
*
'B
********
*****
**
**
**
*
*
*
'C
*
*
*
**
**
**
*****
********
'D
*
*
*
**
**
**
*****
********
'E
*
*
*
*
*
*
*
*
'F
*
*
*
*
*
*
*
*
'G
********
'H
********
'I
' End of font file
See also:
FONT
Leave a Reply