b2dLoadTTF

Category: 2D Overlay

Syntax:

b2dLoadTTF:Int(path:String, pixelHeight:Int)


Parameters

Returns

Int



Summary

Loads a TrueType/OpenType font (.ttf/.otf) at a given pixel height.

Takes path (path to the font file) and pixelHeight (the size to render glyphs at, in pixels).

Returns a font handle (positive integer for success, 0 for failure).

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn