File tree Expand file tree Collapse file tree
static/tutorials/gettingstarted/imgs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414PFont font;
1515// The font must be located in the sketch's
1616// "data" directory to load successfully
17- font = loadFont ("LetterGothicStd-32.vlw" );
18- textFont(font, 32 );
17+ font = createFont ("LetterGothicStd.ttf", 32 );
18+ textFont(font);
1919text("word", 10, 50);
2020]]> </code >
2121</example >
Original file line number Diff line number Diff line change 1212<image >textFont_.png</image >
1313<code ><![CDATA[
1414PFont mono;
15- // The font "AndaleMono-48.vlw" " must be located in the
15+ // The font "andalemo.ttf " must be located in the
1616// current sketch's "data" directory to load successfully
17- mono = loadFont("AndaleMono-32.vlw" );
17+ mono = loadFont("andalemo.ttf", 32 );
1818background(0);
1919textFont(mono);
2020text("word", 12, 60);
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ SPHERE LITERAL2 createShape_
161161SOFT_LIGHT LITERAL2 blend_
162162SQUARE LITERAL2 strokeCap_
163163SUBTRACT LITERAL2 blend_
164+ SVG LITERAL2
164165SVIDEO LITERAL2
165166TAB LITERAL2 keyCode
166167TARGA LITERAL2
You can’t perform that action at this time.
0 commit comments