Name | loadFont() |
||
---|---|---|---|
Processing.js Behavior | Font support for the Canvas element varies across browsers. See Canvas Text, BurntToys Bauhaus.
Please use the follwoing demos to learn how fonts can be rendered in Firefox with Processing.js: Letters, Words, width() |
||
Examples | PFont font; font = loadFont("FFScala.ttf"); textFont(font, 32); text("word", 15, 50); |
||
Description | Loads a font into a variable of type PFont. To load correctly, fonts must be located in the current directory of the sketch. Instead of using loadFont, you should be using createFont(). | ||
Syntax | loadFont(fontname) |
||
Parameters |
|
||
Usage | Web & Application | ||
Related | PFont textFont() text() createFont() |