From da0820d6763106fe2e6d327d00253e09dfd6bc95 Mon Sep 17 00:00:00 2001 From: Daniel Howe Date: Wed, 19 Nov 2025 17:14:21 +0000 Subject: [PATCH] Fix string quotes in font loading example --- src/type/p5.Font.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/type/p5.Font.js b/src/type/p5.Font.js index 26fbdd4996..d444db376e 100644 --- a/src/type/p5.Font.js +++ b/src/type/p5.Font.js @@ -1451,7 +1451,8 @@ function font(p5, fn) { * * // Some other forms of loading fonts: * loadFont("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap"); - * loadFont(`@font-face { font-family: "Bricolage Grotesque", serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; font-variation-settings: "wdth" 100; }`); + * + * loadFont('@font-face { font-family: "Bricolage Grotesque", serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; font-variation-settings: "wdth" 100; }'); * * */