-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Default Fonts Not Loading Correctly #961
Comments
I'm experiencing this aswell, Indeed both the "Source Sans Pro" is nowhere to be found and the fallback in quotes is wrong too. Should just be: Aside from default fonts not loading. How would one go about implementing a custom font ? Any ideas? thanks! |
@MattiaVorstenbosch for implementing a custom font (which was also my workaround for this bug), i ended up just following this guide to use the Gatsby theme and then included the font in the |
I'm also seeing the default font's not loading correctly. They are loading as serif. I have not modified theme. |
Hi guys, sorry the too late response, I was on vacation so I couldn't see any issues until now. I'll try to figure out this and fix in order to launch in the stable v2 🙏 |
Maybe this helps: index.js:2177 Warning: Invalid prop |
Hello @daphnesmit , This error isn't related to the font loading. |
@daphnesmit, The error regarding css property was fixed with PR #992 |
Appears that a fix has been merged and is fixed in the existing RC, closing this issue. I can reopen if the author still encounters the error. |
Bug Report
Describe the bug
When setting up a project as described in "Getting Started", both the main and fallback font aren't loaded correctly:
I was initially planning to dig into this and open a pull request myself, but when I forked the repo I couldn't find any instance of "Source Sans Pro" or even "sans-serif".
So I was able to trace it down to this typography theme in this library:
https://github.com/KyleAMathews/typography.js/blob/49363c455d931f2fceaf7b7594c2c5159c1dc416/packages/typography-theme-moraga/src/index.js#L18
However when I try to load this font in just a basic create-react-app project, it loads as expected.
So here are the two things happening:
"sans-serif"
, but this doesn't properly load a sans-serif fallback font because the quotes cause it to look for a font literally called "san-serif" and not a font in that family.I'd be glad to keep looking into this but I'm not really sure where to look next.
To Reproduce
.mdx
file in the projectReproduction Repo:
https://codesandbox.io/s/quirky-monad-rfrd5?fontsize=14
The text was updated successfully, but these errors were encountered: