Approximate text width by multiplying amount of characters
Approximate text width by multiplying amount of characters

...instead of relying on Canvas.measureText for that. This means that the
calculation is no longer dependent on how the OS renders fonts and therefore
makes the test suite simpler, and portable across OS environments.

One-com/react-truncate