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
better font support #53
Comments
+1 Would be great to be able to load fonts from somewhere other than the OS' font directories. In the meantime, to help others, this works:
|
we also dont have font family fallback support, not sure if i have an issue open for that. cairo attempts to abstract the font handling to the point where it's not very usable so we might require our own abstraction layer |
yup you do, #38 . Font-family support isn't such a biggie afaic as on the server you should know in advance what fonts you have, whilst obviously on the client you don't know what fonts the client has. |
it would be nice to implement as far as keeping the api the same goes, but yeah not a huge deal really |
Any progress with this feature? :) |
Would love to have this as well. Things are pretty bad right now... Here's an attempt to render italic Helvetica on Mac OS X 10.7.5 (node-canvas@0.13.1, node@0.8.14):
|
Sometimes it glitches to such extent that text all of a sudden becomes tiny: (using this code)
|
This could be closed now |
ps if anyone wants to help maintain node-canvas ;) haha |
@visionmedia :( anyone else working on node-canvas besides you? |
opentype.js looks like an interesting alternative to load native fonts:
|
i am not able to change font on canvas ctx.font = '25px Optima'; i installed Optima on my ubuntu. is there anything i can do to fix this issue? |
Was the issue where bold would end up being tiny ever fixed? For some reason if I add edit: Just noticed if I make bold lowercase, the text doesn't render tiny but not bold either... Interesting... |
@eric-brechemier nice find! I've just used that on my app and it's working perfectly. Thanks. |
load from files
The text was updated successfully, but these errors were encountered: