Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



I don't use ligatures and my solution to the keming problem is to overprovision. Thanks for the link though.


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: