Drawing text
If you are used to doing typesetting in applications such as InDesign, you'll know that you have a lot of control over things such as kerning and hyphenation. In Processing, this won't be the case. The things you can do with typography are somewhat limited, but you can still do quite a lot.
Getting ready
To get started, you'll need some fonts to work with. I've used Ostrich Sans and Junction, both open source fonts by The League of Moveable Type. You can download them at http://www.theleagueofmoveabletype.com. After downloading these fonts, you need to install them on your machine, so they are available to use.
To use fonts in Processing, you need to convert them from their original file format to the .vlw
file format Processing uses. You can do this with the Create Font tool. Select the font you need, set a size, and click on the OK button. The .vlw
font will be saved to the data
folder of your sketch.
How to do it...
We'll start by declaring two PFont
objects, one for each font...