-
Notifications
You must be signed in to change notification settings - Fork 80
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
font weight not being applied using dripsy's <Text> #206
Comments
yeah I think we’re missing the font-face code on Web. I’ll try to add that when I get the chance. You just have to use font face CSS in |
Just today I've noticed +/- the same issue in a different context... on web, when fallback fonts are used before loading the custom font. Anyway, thank you for adding this on your todo-list 👍 |
closing in favor of #193 |
hey! using dripsy with solito - I've followed the guide in the docs to get custom fonts setup, and it's (mostly) working really nicely. I've got one instance where it's not working though, and I can't work out why...
in my theme file I've got:
The reason for these modifiers is because I couldn't work out another way of defining each fontface via CSS in the next app with the same name (
Work Sans
) but then being able to get the native app to pick up these different font files based on the weight. anyway, this is all groovy, and I've got e.g.working perfectly with H3s -> it renders Work Sans SemiBold both on the web and native app. however, defining a text variant like this:
and using it like this
it renders
Work Sans Medium
on native, but it rendersWork Sans Regular
on web...in the inspector the font family isWork Sans
and the font weight is400
.I even tried this:
which had no effect. the only thing i could do to get it to render the medium font was this
have you seen this before / do you have any idea why this might be? thanks so much in advance!
The text was updated successfully, but these errors were encountered: