logo

Show HN: Sidebearing-trim – align text to visible ink, not the glyph box

Posted by peksi |3 hours ago |2 comments

nigardev an hour ago[1 more]

wrestled with this exact problem on a landing page last year. ended up manually tweaking padding per font family which is obviously garbage. the js solution is cleaner but curious how it handles web fonts that are still loading. do you use font-display swap or wait for load to measure