-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
finish PFont implementation #60
Comments
@lmccart maybe we could use https://github.com/typekit/webfontloader for |
I much prefer programmatically than touching config files like HTML & CSS! |
WebFontLoader has a programmatic API. Here's an example using the canvas to render:
WebFontLoader does add some CSS to the page, but I think that's unavoidable. If you're concerned about extra styles being added, here's the contents of the stylesheet that the loader adds:
I believe that |
I tripped on this now, I want to render text with a custom font... |
all the functions listed above are now implemented for opentype (ttf, otf) fonts -- see the updated docs |
is this reopened because there's some part left to do or because you were leaving it for me to close? let's breakout the leftover part if there is one. |
just leaving for you to close, thanks |
Typography
Loading & Displaying
Metrics
**Right now this issue is called "finish implementation", but really this is a little more conceptual than just implementation. Most of the basic Processing text features are in p5.js right now, but are there others that make sense? Some that don't? I think createFont() would probably go away, but it would be nice to have a way to hook in a webfont without having to touch the html/css.
The text was updated successfully, but these errors were encountered: