extension-fontgen

Namespace: fontgen Language: Lua Type: Extension

Functions to generate glyphs for fonts at runtime.

API

fontgen.load_font

Type: FUNCTION Creates a mapping between a .fontc file and a .ttf file. Increases the ref count for both resources.

Parameters

fontgen.unload_font

Type: FUNCTION Removes the generator mapping between the .fontc and .ttf file. Decreases the ref count for both resources. Does not remove the previously generated glyphs!

Parameters

fontgen.add_glyphs

Type: FUNCTION Asynchronoously sdds glyphs to the .fontc resource.

Parameters

Returns

fontgen.remove_glyphs

Type: FUNCTION Removes glyphs from the .fontc resource

Parameters