-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- p5.strands
- WebGL
- DevOps, Build process, Unit testing
- Internationalization (i18n)
- Friendly Errors
- Other (specify if possible)
p5.js version
v1.11.11
Web browser and version
safari Version 26.1 and Google Chrome 145.0.7632.77 (Official Build) (arm64)
Operating system
MacOs Sequoia V15.7.3
Steps to reproduce this
Steps:
Go to the reference for loadFont and see second paragraph: "For example, '/assets/inconsolata.otf'."
The source for that text shows intent to have use quotes.
p5.js/src/typography/loading_displaying.js
Lines 22 to 23 in 28b17b5
| * Paths to local files should be relative. For example, | |
| * `'assets/inconsolata.otf'`. The Inconsolata font used in the following |
There are other instances in reference including on loadImage. I happen to come across those examples but did not look further. The problem seems to be a general encoding issue and not at all specific to any one page, I'm just showing the one that caused me notice.
Reactions are currently unavailable