From 178772e0339a1388b60f161933f6acbc7ba594f2 Mon Sep 17 00:00:00 2001 From: Nick McIntyre Date: Tue, 24 Oct 2023 18:37:15 -0500 Subject: [PATCH] Revise docs for textFont() --- src/typography/loading_displaying.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/typography/loading_displaying.js b/src/typography/loading_displaying.js index 6367024eac..f625db3d99 100644 --- a/src/typography/loading_displaying.js +++ b/src/typography/loading_displaying.js @@ -335,9 +335,9 @@ p5.prototype.text = function(str, x, y, maxWidth, maxHeight) { /** * Sets the font used by the text() function. * - * The first parameter, `font`, sets the font. `textFont()` recognizes both - * p5.Font objects and the names of system fonts such - * as `'Courier New'`. + * The first parameter, `font`, sets the font. `textFont()` recognizes either + * a p5.Font 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 textSize().