Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tln
8 months ago
|
parent
|
context
|
favorite
| on:
Show HN: uWrap.js – A faster and more accurate tex...
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
RadiozRadioz
8 months ago
|
next
[–]
I don't use ligatures and my solution to the keming problem is to overprovision. Thanks for the link though.
leeoniya
8 months ago
|
prev
[–]
yep, uWrap internally builds a lookup table for char pairs that differ significantly in width together from just adding their raw widths.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/foliojs/fontkit