What it does
FontExists answers a question: whether a Font object still exists. It takes iFontID (an integer), and answers an integer. iFontID is the id of a Font object, the one LoadFont returned: it is how the call knows what to act on.
Syntax
FontExists(iFontID integer) → integerParameters
| Name | Type |
|---|---|
| iFontID | integer |
Every form returns
integer
Example · generated
font = LoadFont("assets/font.ttf")DO Print(FontExists(font)) Sync()LOOPLoadFont is there to give the call something to act on; FontExists 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.