4 Working with Text and Files

Sketch 34: Fonts, Sizes, Character Properties

When text is drawn on the screen, there are many ways to draw each character. The size, weight, orientation, and style can vary widely. A font specifies a particular size, weight, and style of a typeface. Fonts are saved as files that contain the instructions for drawing each character. Bold, italic, normal, and each important size are individual files. The font name, a style, and a size are frequently part of the filename.

Processing allows many fonts, but each one must be set up in advance as a file using the Tools menu. Select ToolsCreate Font to open a font-creation ...

Get An Artist's Guide to Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.