You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard fonts aren't being rendered using fontFamily on a Vite/React/TS project.
To Reproduce
Setup local environment.
Set 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.
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"
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: