Skip to content

Commit 424d2e8

Browse files
authored
Merge pull request #8279 from dhowe/patch-1
Fix string quotes in font loading example
2 parents 60ef55e + da0820d commit 424d2e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/type/p5.Font.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,8 @@ function font(p5, fn) {
14511451
* <code>
14521452
* // Some other forms of loading fonts:
14531453
* loadFont("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap");
1454-
* loadFont(`@font-face { font-family: "Bricolage Grotesque", serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; font-variation-settings: "wdth" 100; }`);
1454+
*
1455+
* loadFont('@font-face { font-family: "Bricolage Grotesque", serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; font-variation-settings: "wdth" 100; }');
14551456
* </code>
14561457
* </div>
14571458
*/

0 commit comments

Comments
 (0)