-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot render standard fonts locally (Vite, React, TS) #2818
Comments
I am having the same issue here. It is specifically popping up with elements that are inside of elements that are "inline-flex", "inline", or "inline-block" |
some more context on this --- the non-standard fonts are rendering in some situations. if the parent element is a "flex" for example, the non-standard font is rendering correctly. if the parent element is a "inline-flex", the non-standard font will default to some basic font or not show up at all. |
Submitted a PR to fix this #2827 |
Describe the bug
Standard fonts aren't being rendered using
fontFamily
on a Vite/React/TS project.To Reproduce
fontFamily: "Times-Roman"
on<Text />
component.Attached screenshots show that loading the fonts from the public folder (with different name) works but directly referencing "Times-Roman" does not render the font. Using the REPL works though, am I missing something?.
Expected behavior
To correctly render standard font that is pre-installed in the system.
👇 When I reference
fontFamily: "Times-Roman"
, doesn't work.The Code
Main component:
Project structure
Desktop:
The text was updated successfully, but these errors were encountered: