Comment

Comment by geelen

Yep! I really wanted this, but it's a bit more work. HTML5 canvas has a `measureText` method but it only returns width, so there's a few cases where the text will escape the box. The logic is really simple for now, but I'll hope to improve it in future.

Would you mind submitting an issue with a screenshot of your text not rendering correctly? https://github.com/geelen/typeslab/issues

parent geelen 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton