igiLoadFont

Category: IGI (in-game GUI) — Styling

Syntax:

igiLoadFont:Int(path:String, size:Int)


Parameters

Returns

A font handle for igiPushFont (0 if the file can't be loaded).



Summary

Loads a font for IGI text. 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.



Example
Global title:Int = igiLoadFont("Media/MyFont.ttf", 28)
; ...
igiPushFont(title)
igiText("Game Over")
igiPopFont()

BambooBasic © 2026 Michael Denathorn