Hacker News new | ask | show | jobs
by MrNibbles 5436 days ago
Why Canvas for rendering text? Makes very little sense, DOM hardware render support is better on many platforms right now.
1 comments

Agreed. DOM rendering support has gotten really good over the past year. I want to try a different approach that will make everything seem smoother. Also, since with this sort of text editor you want everything to be aligned in a grid the rendering becomes a set of aligned glyphs... so the GPU rendering can be optimized more so than when considering the entire DOM. If there wasn't that simplification I wouldn't even be suggesting this.