4.2. tsFontDestroy

Syntax

Pascal

procedure tsFontDestroy(FontID: tsFontID);

C/C++

void tsFontDestroy(tsFontID FontID);

Description

Destroys an font and frees the used texture space. If the fonts is currently bound the bind will be released.

Params

FontID

The ID of the font that will be freed.

Error Codes

TS_NO_ACTIVE_CONTEXT

There is no active context. See also tsContextBind.

TS_INVALID_OPERATION

This error ocours if you are not able to destroy the font. This is not allowed if you are currelty in an block mode.

TS_INVALID_VALUE

This happens if you try to destroy an unknown font. The ID of the font is invalid.