-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
where can i upload different fonts #62
Comments
@sosunnyproject – great question. If you're using P5LIVE a lot and working on a project just for you (not COCODING), then I highly suggest installing it as an offline server - either the quick python way or fancy with node/npm for enabling auto-backups. Export all sketches (or within settings, press Then to load local files, you can be as messy/organized as you like, linking like so:
If you need to access it 'online' (mainly for COCODING or sharing the script with someone else online) – then your best bet is finding a CORS friendly service to host it for you, ie. glitch.com. Create a basic 'static website' (always awake), then goto 'assets', drag + drop, click on file, copy that URL – then you can load that online hosted font file, will have a crazy long URL:
I'm sure there are some other great free places to store files/assets online (just tested with github, but couldn't access a font file in CORS free way... hmm works fine for obj and other text files). |
Hope the answer above solved the issue (run locally using own folder ie |
hello, I'm enjoying p5 live and thanks so much for this amazing website!
I tried to figure out how to upload new font files, but couldn't.
Based on typo examples, it seems like the code loads font files from this directory.
font = loadFont("includes/demos-data/fonts/RobotoMono-Regular.otf");
Could someone help me how to find this directory and upload a file?
Thanks!
P.S. I know that I can also load google fonts as an alternative, but looking for direct upload, if possible. Thanks!
The text was updated successfully, but these errors were encountered: