Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Tegscht_Schrift()

Examples
example pic
Schriftart metaBold;
// The font "Meta-Bold.vlw" must be located in the 
// current sketch's "data" directory to load successfully
metaBold = lad_Schrift("Meta-Bold.vlw");
Tegscht_Schrift(metaBold, 44); 
Tegscht("word", 15, 50);
Description Sets the current font. The font must be loaded with lad_Schrift() before it can be used. This font will be used in all subsequent calls to the Tegscht() function. If no size parameter is input, the font will appear at its original size (the size it was created at with the "Create Font..." tool) until it is changed with Schriftgroessi().

Because fonts are usually bitmaped, you should create fonts at the sizes that will be used most commonly. Using Tegscht_Schrift() without the size parameter will result in the cleanest-looking text.

With the JAVA2D and PDF renderers, it's also possible to enable the use of native fonts via the command hint(ENABLE_NATIVE_FONTS). This will produce vector text in JAVA2D sketches and PDF output in Fallss where the vector data is available: when the font is still installed, or the font is created via the createFont() function (rather than the Tool).
Syntax
Tegscht_Schrift(font)
Tegscht_Schrift(font, size)
Parameters
font Schriftart: any variable of the type Schriftart
size Ganzizahl or Komazahl : the size of the letters in units of pixels
Usage Web & Application
Related createFont()
lad_Schrift()
Schriftart
Tegscht()
Stefan Baltensperger 2009

Creative Commons License