TUTORIAL

How to Create Text

				
	
	
	PFont font;
	font = loadFont("FFScala-32.vlw");
	textFont(font, 32);
	text("word", 15, 50);

	PFont

PFont is the font class for Processing. 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. Processing displays
fonts using the .vlw font format, which uses images for each letter, rather than defining them through vector data.

The loadFont() function constructs a new font and textFont() makes a font active.

The list() method creates a list of the fonts installed on the computer, which is useful information to use with the createFont()
function for dynamically converting fonts into a format to use with Processing.
Reference:http://www.processing.org/reference/PFont.html

text() Draws text to the screen. http://www.processing.org/reference/text_.html loadFont() Loads a font into a variable of type PFont. http://www.processing.org/reference/loadFont_.html textFont() Sets the current font. http://www.processing.org/reference/textFont_.html textSize() Sets the current font size. http://www.processing.org/reference/textSize_.html textAlign() Sets the current alignment for drawing text. http://www.processing.org/reference/textAlign_.html textWidth() Calculates and returns the width of any character or text string. http://www.processing.org/reference/textWidth_.html Exercise1:Change your font styles, size and position.