More about fonts, 'cause they have a lot of settings...
Font and Text in Processing have lots of settings you can set, and a whole system of code that sets them. They are, to whit:
| SYNTAX | Effect | DOCS |
| PFont | Data type for a variable that can contain a font | link |
| createFont("fontname.ttf", sizeVal) | Used to put a font file, kept in the sketches data folder, into a variable. The sizeVal must be specified, even though it can be reset with textFont(). | link |
| textFont(fontVariable, optionalSize) | Sets up the text() function to use the font stored in the fontVariable. The optionalSize value can set the size to something other than the default value set in createFont(). | link |
| text("String", xVal, yVal, optWidth, optHeight) | The thing that throws the text into the Display Window. The first parameter can be a string variable or a block of text in double-quotes (not single). xVal and yVal are the location of the baseline of the text, not the upper left corner. optWidth and optHeight create an invisible box that the text lives inside of. | link |
| textAlign(alignX, optionalAlignY) | Sets the alignment to LEFT, CENTER, or RIGHT. The optionalAlignY sets the vertical alignment to TOP, BOTTOM, or CENTER, which really only makes sense if the text is in a box of a particular width and height. | link |
| textSize(sizeVal) | Sets the size of the text in pixels. Unnecessary if you use textFont(fontVariable, optionalSize), but handy if you want to change the size after you've set the textFont(). | link |
| textLeading(sizeVal) | Sets the spacing between lines of text in pixels. Reset when you use textSize(). | link |
| fill(rVal, gVal, bVal, alphaVal) | The way to color the text other than the default white. | link |