Pomax / lib-font

This library adds a new Font() object to the JavaScript toolbox, similar to new Image() for images
MIT License
734 stars 72 forks source link

Multiple files loaded in chome #35

Closed antag0n1st closed 4 years ago

antag0n1st commented 8 years ago

Just noticed , that the same font file is loaded 3 times

Pomax commented 8 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.

cyberwombat commented 7 years ago

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.

Pomax commented 7 years ago

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?

Pomax commented 4 years ago

obsolete with the 2019 rewrite