Skip to content

Commit 119e6fc

Browse files
committed
Update for tutorial figure and createFont() in the Reference
1 parent 8130547 commit 119e6fc

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

content/api_en/PFont.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
PFont 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);
1919
text("word", 10, 50);
2020
]]></code>
2121
</example>

content/api_en/textFont.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<image>textFont_.png</image>
1313
<code><![CDATA[
1414
PFont 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);
1818
background(0);
1919
textFont(mono);
2020
text("word", 12, 60);
-46 Bytes
Loading

generate/keywords_base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ SPHERE LITERAL2 createShape_
161161
SOFT_LIGHT LITERAL2 blend_
162162
SQUARE LITERAL2 strokeCap_
163163
SUBTRACT LITERAL2 blend_
164+
SVG LITERAL2
164165
SVIDEO LITERAL2
165166
TAB LITERAL2 keyCode
166167
TARGA LITERAL2

0 commit comments

Comments
 (0)