Design comparison
Solution retrospective
i still don't understand about adding the font-face with font variable, when i use tech('variation') it's not working, so i don't use it. and i got difficulty in finding what is the font family that should use (the name of font family), the instruction said i should use app to know the font family but after i search until now i still don't know the app. but when I compose according to the font name it works.
i am sorry for my bad english...
Community feedback
- @N4thxnPosted 10 months ago
Hello!
I learned how to use @font-family fairly recently but it isn't complicated at all!
@font-face { font-family: use whatever name you would like here; url(use the file address for the font relative to where your index.html is, for example mine was assets/fonts/font-name.ttf)
after that, you can use font-family on any of your elements simply by doing
font-family: the name you chose in @font-face;
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord