3 ms·
You'd need more than just letter widths because of kerning and ligatures, for 100% accuracy. Anyway, fontkit can work on the server and can get individual glyph
by tln 2y ago
You'd need more than just letter widths because of kerning and ligatures, for 100% accuracy. Anyway, fontkit can work on the server and can get individual glyph metrics as well as metrics for a run of glyphs.
https://github.com/foliojs/fontkit https://github.com/foliojs/fontkit
- leeoniya 2y agoyep, uWrap internally builds a lookup table for char pairs that differ significantly in width together from just adding their raw widths.
- RadiozRadioz 2y agoI don't use ligatures and my solution to the keming problem is to overprovision. Thanks for the link though.