Skip to content

Commit 178772e

Browse files
committed
Revise docs for textFont()
1 parent 0c2f0ca commit 178772e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/typography/loading_displaying.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ p5.prototype.text = function(str, x, y, maxWidth, maxHeight) {
335335
/**
336336
* Sets the font used by the <a href="#/p5/text">text()</a> function.
337337
*
338-
* The first parameter, `font`, sets the font. `textFont()` recognizes both
339-
* <a href="#/p5.Font">p5.Font</a> objects and the names of system fonts such
340-
* as `'Courier New'`.
338+
* The first parameter, `font`, sets the font. `textFont()` recognizes either
339+
* a <a href="#/p5.Font">p5.Font</a> object or a string with the name of a
340+
* system font. For example, `'Courier New'`.
341341
*
342342
* The second parameter, `size`, is optional. It sets the font size in pixels.
343343
* This has the same effect as calling <a href="#/p5/textSize">textSize()</a>.

0 commit comments

Comments
 (0)