Shiny Language Reference

Language Reference > Font Functions


selectfont

selectfont(font FontVar);

 

Synonyms:

fontselect(font FontVar);

 

Selects a font for use

SELECTFONT tells Brass to use a previously created font (using CREATEFONT) for all further text output, until SELECTFONT is called again.

This statement is only valid in the Render handler.

 

Parameters

FontVar

The variable declared as type FONT to use for all output

 

Return Value

None

 

Example Code

font MyFont;
createfont(MyFont, "Arial", 12);

// Uses the previously created MyFont for all text output
selectfont(MyFont);