lib-font
lib-font copied to clipboard
This library adds a new Font() object to the JavaScript toolbox, similar to new Image() for images
Right now it's using a fairly "naive" UTF16 decoding for anything with platformID 0 (Unicode) or 3 (Microsoft), with "ascii" byte decoding for anything else, but that glosses over a...
From https://github.com/Pomax/lib-font/issues/127: > when I tried to add a failing test to testing/browser/tests/test.otf.js, throwing an exception seems to just hang the test host until timeout instead of failing the test....
I opened this issue on a project that uses this as a dependency. Is it possible to grab this info using lib-font? In the [CSS fonts Level 4 spec](https://www.w3.org/TR/css-fonts-4/#base-palette-desc), base-palette...
While this lib may not be intended to be a text shaper, it might be useful to offer a separate CFF/CFF2 parser that can be loaded alongside Font.js, to allow...
Pretty trivial, I've set this up more times than I can count by now.
simple - [x] OS/2 - [x] SVG - [x] head - [x] hhea - [x] hmtx - [x] maxp - [x] name - [x] post cmap - [x] CMAP -...
There's quite a bit to document, most of it "obviously" named, but some of it not. We need to get some API documentation going. Ideally this would be autogenerated from...
It would be useful to have a set of "recipes" available for folks to consult when they want to use font.js for something, so they can just look up code...
Currently only "Null transformed" is supported for WOFF2.
Experimenting with Font.js and not loading `inflate.js` and `unbrotli.js`, I was surprised to find Font.js being perfectly capable of accepting a WOFF font. (WOFF2 indeed fails as expected on a...