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

feat(font): add maximum and average character widths to FontMetrics #971

Closed zbaylin closed 4 years ago

zbaylin commented 4 years ago

This uses Skia's FontMetrics functions to get the maximum and average character widths for a given typeface.