Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



<3

To be clear, the use case of this is anything where I have lots of text on a canvas? Like, a canvas based game with thought bubbles or something like that?


it's where you need to know the wrap points of some text given a width of the container. since Canvas does not offer text wrapping, that is one use case, because you have to wrap manually.

my use case is determining the height of a table cell given a specific column width and text that needs to be rendered inside.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: