natiny.font.destroy
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
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.