DeleteFont

Family: Font · One form

What it does

DeleteFont removes a Font object: after it, the id names nothing. It takes iFontID (an integer), and returns nothing. iFontID is the id of a Font object, the one LoadFont returned: it is how the call knows what to act on.

Syntax

DeleteFont(iFontID integer)

Parameters

NameType
iFontIDinteger

Every form returns

nothing

Example · generated

font = LoadFont("assets/font.ttf")DeleteFont(font)DO  Sync()LOOP

LoadFont is there to give the call something to act on; DeleteFont is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

8 commands in Font