hBasic > hManual > Commands > Console > Samples

hBasic Manual
Examples and Demos

Code Samples

How to use a font family

How to load a console font
Demos
0413 demo
demo package as zip file
( click above link to download )
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




Leading Cloud Surveillance, Recording and Storage service; IP camera live viewing

Leading Enterprise Cloud IT Service; cloud file server, FTP Hosting, Online Storage, Backup and Sharing

Powered by FirstCloudIT.com, a division of DriveHQ, the leading Cloud IT and Cloud Surveillance Service provider since 2003.