You want
https://github.com/Pomax/Font.js
.