News for hackers. Stuff that matters.
Re:Flipboard releases React Canvas by amelius on Tuesday February 10, 2015 @05:34PM (#9030377)
Last time I checked, measuring font sizes using the canvas was horribly slow. So, I wonder how they perform measurements necessary for automatic line-wrapping, et cetera. Are they doing these measurements fully in javascript?

> Custom fonts are not currently supported but will be added in a future version.

Ok, that is a pity. I wonder if it has something to do with the complexity of implementing measureText fully in javascript.

Re:Flipboard releases React Canvas by mjjohnston on Tuesday February 10, 2015 @05:41PM (#9030412)
Custom fonts are supported on flipboard.com using the same rendering engine. It was just a matter of time to extract the Flipboard specific bits out. This is coming soon.
Re:Flipboard releases React Canvas by amelius on Tuesday February 10, 2015 @05:51PM (#9030454)
I was also wondering how you embed video. And what if an element in the virtual DOM (e.g., a popup box) overlaps with the video?