Doc: GetFreeFont( )

GetFreeFont - get a free font index

Syntax

index = GetFreeFont()

  • fontIndex - free, unused font index ready for use

Explanation

GetFreeFont() returns a free font index.

Examples

Get a Free Font Index

largeFont = GetFreeFont()
LoadFont "Arial", largeFont, 50, 0
SetFont largeFont

Print "This is a large font!"
Sync
WaitKey

Related Pages

Reference

Categories: Fonts : Functions : Graphics : Text