b2dFreeFont

Releases font resources and removes from memory. Takes font (font handle from b2dLoadFont to free, positive integer). Returns nothing.

2D Overlay

Parameters & Returns

Parameters

font Int

Returns

Void

Quick Summary

Releases font resources and removes from memory. Takes font (font handle from b2dLoadFont to free, positive integer). Returns nothing.

Technical Exegesis...

Releases font resources and removes from memory. Takes font (font handle from b2dLoadFont to free, positive integer). Returns nothing. Deletes font texture atlas from GPU memory, removes font from internal font map, invalidates font handle (subsequent use will be ignored).

Memory management: frees GPU texture memory (font atlas bitmap), frees CPU memory (font metrics, character data), immediate release (no deferred cleanup), handle becomes invalid after free (reuse causes no error but no rendering).

Example

Example.bam
; No example implemented yet