DEV Community

Discussion on: I Made an NPM Package to Render text on HTML5 Canvas

Collapse
 
bariscc profile image
Baris Can Ceylan

Congrats, nice little package!
One improvement I can think of is making it responsive, perhaps props for different breakpoints.

As a note: Keep in mind that text in canvas (or anything in canvas really) is not accessible. It's always best to use semantic html where you can to provide contextual data & better accessibility.

Collapse
 
geongeorge profile image
Geon George

Thank you!
I used to have a solution where you drop in '\n' to add a custom breakpoint.
This could be added in a future version.