Font Resource

Namespace: dmGameSystem Language: C++ Type: Defold C++ File: res_font.h Source: engine/gamesys/src/dmsdk/gamesys/resources/res_font.h Include: dmsdk/gamesys/resources/res_font.h

Font resource functions.

API

FontInfo

Type: STRUCT Used to retrieve the information of a font.

Members

FontResource

Type: STRUCT Handle to font resource

FPrewarmTextCallback

Type: TYPEDEF

Parameters

PrewarmText

Type: FUNCTION Make sure each glyph in the text gets rasterized and put into the glyph cache

Parameters

Returns

ResFontAddFontByPath

Type: FUNCTION add a ttf font to a font collection

Notes

Parameters

Returns

ResFontAddFontByPathHash

Type: FUNCTION add a ttf font to a font collection

Notes

Parameters

Returns

ResFontAddGlyph

Type: FUNCTION

Parameters

Returns

ResFontAddGlyph

Type: FUNCTION

Parameters

Returns

ResFontGetFontCollection

Type: FUNCTION

Parameters

Returns

ResFontGetHandle

Type: FUNCTION

Parameters

Returns

ResFontGetInfo

Type: FUNCTION

Parameters

Returns

ResFontGetPathHashFromFont

Type: FUNCTION

Parameters

Returns

ResFontGetTTFResourceFromFont

Type: FUNCTION

Parameters

Returns

ResFontRemoveFont

Type: FUNCTION remove a ttf font from a font collection

Parameters

Returns

SDF_EDGE_VALUE

Type: CONSTANT The edge value of an sdf glyph bitmap