revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

fix(text): make overflow UTF-8 aware #963

Closed zbaylin closed 4 years ago

zbaylin commented 4 years ago

This is a pretty simple fix, since Zed already gives us a function to do exactly what we were doing before but with UTF-8.

I will also add some tests for this, just to make sure it's robust!