Broken vertical font alignment on certain Linux distributions
See original GitHub issueBug report
Describe the bug
Text which is supposed to be centered vertically is off by a few pixels in Firefox on Fedora 33. This happens on both v1 and v0 and for every UI element where text is used.
To reproduce
- Get a working installation of Fedora 33 (VM, live USB stick, etc.)
- In Firefox, open one of the urls mentioned below
- See how the font is not aligned properly
Minimal reproduction
The official Chakra UI docs are by nature a minimal reproduction. See below for links. 😃
Update: This is no longer the case as the docs now use the non-default Inter
font.
Expected behavior
I would expect the vertical alignment of text to be pixel perfect.
Screenshots
v1 screenshots
https://next.chakra-ui.com/docs/form/button
https://next.chakra-ui.com/docs/data-display/badge
https://next.chakra-ui.com/docs/form/input
v0 screenshot
System information
- OS: Fedora 33 (Linux)
- Browser: Firefox 84.0 (64 bit)
- Version of @chakra-ui/core: 1.0.0-rc.5 / 0.8.0
- Version of Node.js: N/A
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:29 (9 by maintainers)
Top Results From Across the Web
Font misaligned vertically / Newbie Corner / Arch Linux Forums
Dirty fix is of course to align it in source code of dwm, but that doesn't really work for everything mentioned above, and...
Read more >(nevermind) It seems most Linux distributions are shipping a ...
(nevermind) It seems most Linux distributions are shipping a broken Nimbus font (Helvetica substitution) and it's causing a lot of problems.
Read more >vertical-align - CSS: Cascading Style Sheets - MDN Web Docs
The vertical-align property can be used in two contexts: To vertically align an inline element's box inside its containing line box.
Read more >Why I vertically align my code (and you should too!)
Some heretical scum will tell you that proportional fonts are the best ... Linux Kernel where vertical alignment is used to make code...
Read more >conky - How to align text in the middle of two ${hr}s?
You can pull off something close to what you want like this... ${alignc}Some Text ${color green}${voffset -25}______${alignr}______.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This explains why I am seeing the exact same issue on GitHub:
Experiencing same issue on Firefox. Definitely coming from the github font stack. Seeing the same issue on buttons here.