-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Fonts like Overpass not correctly rendered #27044
Comments
Thanks for the feedback. This sounds like an issue with the font not Material-UI. Could you create a repro that compares Material-UI with a normal |
Hi @eps1lon What I did was trying to import Overpass from a different source than Google Fonts (see code here) And it works. So appears to be a bug with the font files on Google Fonts. Pretty absurd, but looks like this. |
Thanks for the confirmation. Since this isn't actionable for us, I'm closing. |
More info for who's interested: that's an issue of the Overpass font. If you clone their repo, fix is there. Not sure why they're not re-building the release, even if lots of people are asking for it ( RedHatOfficial/Overpass#75 ). I think google fonts is just getting the latest release and not the actual files in the repo. |
Current Behavior 😯
If I import Overpass from Google fonts, and set it as default font with
createMuiTheme
, text is rendered with an incorrect space below the text.Expected Behavior 🤔
To work like Roboto, so for example in a button seeing the text aligned in the center.
Steps to Reproduce 🕹
I have created a codesandbox for this issue, that you can find here
https://codesandbox.io/s/unruffled-vaughan-zvwq9
Also a Stackoverflow quesiton to grab some inputs (so far no helps)
https://stackoverflow.com/questions/68190709/issue-with-font-rendering-on-browser
As you can see from the images, text is not aligned in the center, as it should be. There is no padding and line-height is correctly set. It's just the font that has extra space below.
Steps:
createMuiTheme
align-items: center
property doesn't align items in the center.See https://codesandbox.io/s/unruffled-vaughan-zvwq9 for the error
Context 🔦
I cannot use common used fonts, such as Overpass or Benne
Your Environment 🌎
Issue first seen on Brave Browser (
Version 1.26.67 Chromium: 91.0.4472.114 (Official Build) (64-bit)
) but also reproduced on Chrome (latest), and Firefox (latest)`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: