hBasic Manual
|
||||||||||
Examples and Demos
|
||||||||||
How to use a font family
CONSOLE.SET "FONT sans-serif.BOLD" or .CS "FONT sans-serif.BOLD" % .cs is a shortcut command |
||||||||||
How to load a console
font
FONT.LOAD fptr,
"../source/LCDMN___.ttf" IF fptr = -1 THEN PRINT "Error loading font" : END CONSOLE.SET "FONT "+ int$(fptr) .CS "TEXTSIZE 30" ? "Loaded Font" |
||||||||||
Demo 0413
This was the demo with release v3.28. It now only works
for v4.13+ because of the added menu command.
Click to download the demo package as zip file Unzip and copy all the files into the source/ directory. Then run demo.bas. The demo is really 3 demo files run in sequence (with the RUN command). demo.bas -> font-fam.bas -> font-load.bas |
||||||||||