Hacker News new | ask | show | jobs
by benshumaker0 655 days ago
Man you're right. The text layout system was brutal. I had a particularly memorable day where I couldn't figure out why our line height didn't match the browser (and each browser was different). I fixed it by adding a constant that was buried in the font files. It took 12 hours. It was a one liner.

Haven't planned accessibility help yet. But I think simple warnings could go far. When I break guidelines, it's usually by accident.

2 comments

I’m betting the value you were looking was in the OS/2 table in the TrueType/OpenType files.

Every time I have to interact with font metrics data directly, I pour one out for IBM’s greatest and most tragic PC desktop OS.

I hope you know what you're in for! [0] Good luck and godspeed :D

https://faultlore.com/blah/text-hates-you

We've looked over this essay a few times and we can relate. Rendering text is not for the faint of heart :)