-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
Add text rendering #43
Comments
awesome idea ! just for the backlog: |
+1 I just set up roughjs for my remark presentation, then realized that roughjs doesn't support text for the flowchart I wanted to draw. As soon as roughjs supports text, I'm using it for every presentation I do! Edit: The blo.ocks approach above works well as a stop gap! |
@bcherny You can continue to use the standard canvas context2d object with roughjs. Use the former to render text on canvas. e.g. https://bl.ocks.org/aaizemberg/b403ba342cf0cd32d3e8a77174dcf8a0 But, you're right built in text rendering would be simpler |
@bcherny that's pretty interesting. Would you mind giving some words on the tool/process you build your presentation with? |
@bcherny wow. nice. many thanks for sharing! |
Since one could use any hand written font on a web page, I think this is out of scope for this project. |
Perhaps use https://github.com/ipython/xkcd-font
or https://fonts.google.com/specimen/Amatic+SC
Ideally should be able to configure the font, but using one of these two as a default. Will work with Canvas and SVG.
Also, see: https://bl.ocks.org/aaizemberg/76b00a3aa08d7161b980d915db6a85a2
The text was updated successfully, but these errors were encountered: