I want to have a function that, given a string, returns the width of that string in a certain font. Canvas draw has something like this, but I've only been able to set the font and get the width of a string in it in the draw function; not on demand.

0

There are 0 best solutions below