News for hackers. Stuff that matters.
Re:Txt – A canvas font and typesetting engine by mxfh on Tuesday November 11, 2014 @04:25PM (#8592275)
Any plans to integrate soft hyphenation out of the box? This makes block layouts look so much nicer.

https://code.google.com/p/hyphenator/

https://github.com/bramstein/hypher

Also this tool shouldn't obfuscate the text content if not explicitly wanted, which in the days of captcha reading OCRs is a desperate measure anyways and doesn't add to the accessibility of the page. Please add the rendered text in the alt attribute of the canvas by default. Or even better make it degrade gracefully to proper HTML by using some CSS replacement technique linking to the dataURL of the dynamically created off-screen canvas image.

See HTMLCanvasElement.toDataURL()

There are no comments on this comment yet.