Category: IGI (in-game GUI) — Styling
Syntax:
igiLoadFont:Int(path:String, size:Int)
A font handle for igiPushFont (0 if the file can't be loaded on desktop).
Loads a font for IGI text. On the web the file is fetched in the background: until it arrives, igiPushFont of it keeps the current font. IGI's own font is Liberation Sans 16 px.
Styling and fonts can be set up once, in Main, before the loop. See the IGI guide.
Global title:Int = igiLoadFont("Media/MyFont.ttf", 28)
; ...
igiPushFont(title)
igiText("Game Over")
igiPopFont()
BambooBasic © 2026 Michael Denathorn