Re:System Font Stack
by kevin_thibedeau on Saturday May 28, 2022 @05:38PM
(#31544103)
You just need flexbox or construct an SVG. Let the divs size themselves to the font and allow the browser to put them where they're told to go.
[ Parent
| on HN ]
Re:System Font Stack
by bufferoverflow on Saturday May 28, 2022 @07:20PM
(#31544723)
I don't see how flexbox solves this problem. Just because you vertically center text, doesn't mean that the visible text is actually centered. It depends on the font.
Re:System Font Stack
by bufferoverflow on Saturday May 28, 2022 @11:23PM
(#31546075)
Here's an example: