natiny.font.destroy

Lua
natiny.font.destroy(font)

Destroys a font and releases its internal resources.

Parameters

Name Type Description
font number Font handle from natiny.font.create

Example

Lua
natiny.font.destroy(font)

Notes

  • The handle and its atlas texture become invalid. Destroying a font does not destroy the source resource used to create it.