Skip to content

Commit

Permalink
Revise docs for textFont()
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmcintyre committed Oct 24, 2023
1 parent 0c2f0ca commit 178772e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/typography/loading_displaying.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ p5.prototype.text = function(str, x, y, maxWidth, maxHeight) {
/**
* Sets the font used by the <a href="#/p5/text">text()</a> function.
*
* The first parameter, `font`, sets the font. `textFont()` recognizes both
* <a href="#/p5.Font">p5.Font</a> objects and the names of system fonts such
* as `'Courier New'`.
* The first parameter, `font`, sets the font. `textFont()` recognizes either
* a <a href="#/p5.Font">p5.Font</a> object or a string with the name of a
* system font. For example, `'Courier New'`.
*
* The second parameter, `size`, is optional. It sets the font size in pixels.
* This has the same effect as calling <a href="#/p5/textSize">textSize()</a>.
Expand Down

0 comments on commit 178772e

Please sign in to comment.