foliojs / fontkit

An advanced font engine for Node and the browser
1.45k stars 213 forks source link

How to load font in browser? #256

Closed defpis closed 3 years ago

defpis commented 3 years ago

Is there some apis like opentype.js opentype.load('font.ttf') to load font by http

Pomax commented 3 years ago

see if https://github.com/foliojs/fontkit/issues/77#issuecomment-356916652 works for you, although opentype.js (for glyph work) or lib-font.js (for non-glyph work) might be better supported candidates. No one's really working on fontkit atm, unfortunately.

defpis commented 3 years ago

Thanks