Closed antag0n1st closed 4 years ago
This project is effectively no longer under active maintenance, since there are better alternatives available these days (OpenType.js, Fontkit, etc), so unless this is a thing that you really need fixed, and you're willing to take a stab at patching the code to do the right thing, this issue will probably not get fixed.
Unfortunately this project appears to be the only one that does what it does.OpenType cannot load fonts for the browser to use (i.e. @font-face) and TypeKit afaik has no support for measuring text.
you may want to check out https://github.com/typekit/webfontloader for the "loading in the browser" part, and then you can use a more modern library to find the metrics once that signals your font's been loaded in?
obsolete with the 2019 rewrite
Just noticed , that the same font file is loaded 3 times