TUTORIAL QUICK LINKS



Letter Design by Yeohyun Ahn and layout design by John Page Corrigan by using Ricard Marxer's Caligraft


How to Creat Text
:
The function text( ) uses typography in Processing. The example below shows how the function can be used. First, myFont = createFont("Univers", 32) calls for the desired font, in this case Univers at a point size of 32. Secondly, textFont(myFont) assigns that font (Univers, 32pt) for the text that we wish to have displayed. While the final function, text ("T"), calls and displays the content; here it is the capital letter "T".



PFont myFont;
void setup() {
size(200, 200);
background(255,255,255);
myFont = createFont("Univers", 32);
textFont(myFont);
fill(0,0,0);
translate(55,90);
text("T");
}