b2dLoadFont

Loads bitmap font from texture atlas and metrics file. Takes bitmapPath (path to font texture atlas image file, PNG format), metricsPath (path to font metrics data file, .fnt format). Returns font handle (positive integer for success, 0 for failure).

2D Overlay

Parameters & Returns

Parameters

bitmapPath String
metricsPath String

Returns

Int

Quick Summary

Loads bitmap font from texture atlas and metrics file. Takes bitmapPath (path to font texture atlas image file, PNG format), metricsPath (path to font metrics data file, .fnt format). Returns font handle (positive integer for success, 0 for failure).

Technical Exegesis...

Loads bitmap font from texture atlas and metrics file. Takes bitmapPath (path to font texture atlas image file, PNG format), metricsPath (path to font metrics data file, .fnt format). Returns font handle (positive integer for success, 0 for failure). Creates font resource with pre-rendered character glyphs, uploads texture to GPU, parses character metrics for layout.

Example

Example.bam
; No example implemented yet