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

Name

lad_Schrift()

Examples
example pic
Schriftart font;
// The font must be located in the sketch's 
// "data" directory to load successfully
font = lad_Schrift("FFScala-32.vlw"); 
Tegscht_Schrift(font, 32); 
Tegscht("word", 15, 50);
Description Loads a font into a variable of type Schriftart. To load correctly, fonts must be located in the data directory of the current sketch. To create a font to use with Processing, select "Create Font..." from the Tools menu. This will create a font in the format Processing requires and also adds it to the current sketch's data directory.

For most renderers, Processing displays fonts using the .vlw font format, which uses images for each letter, rather than defining them through vector data. When hint(ENABLE_NATIVE_FONTS) is used with the JAVA2D renderer, the native version of a font will be used if it is installed on the user's machine.

Using createFont() (instead of loadFont) enables vector data to be used with the JAVA2D (waen_nuet_vodaem_zuetrifft) renderer setting. This can be helpful when many font sizes are needed, or when using any renderer based on JAVA2D, such as the PDF library.
Syntax
lad_Schrift(fontname)
Parameters
fontname Satz: name of the font to load
Usage Web & Application
Related Schriftart
Tegscht_Schrift()
Tegscht()
createFont()
Stefan Baltensperger 2009

Creative Commons License