4.3. tsFontBind

Syntax

Pascal

procedure tsFontBind(FontID: tsFontID);

C/C++

void tsFontBind(tsFontID FontID);

Description

This function bind the font with the FontID to thecurrent context. If you pass 0 as FontID no font will be bound and the current font will be unbund.

Params

FontID

The ID of the font that should be bound. If this value is 0 the current font will be unbound.

Error Codes

TS_NO_ACTIVE_CONTEXT

There is no active context. See also tsContextBind.

TS_NO_ACTIVE_RENDERER

There was no renderer set. See also the parameter TS_RENDERER.

TS_INVALID_VALUE

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