Design comparison
Solution retrospective
What is the best practice for using fonts in creating website ?
- was it by using CDN or by downloading the fonts locally
Community feedback
- @correlucasPosted over 2 years ago
πΎHello NelJohn Cerera, congratulations for your new solution!
Answering your question:
The problem when you work with fonts locally is that your font probably will not render when the site gets online if is not a widely used font (helvetica + arial).
The best way (in my opinion) is to use Google Fonts, to import the font since it is free and really light, you can find a ton of fonts there and you don't really need to write any code since Google Fonts give you the code to insert in the HTML or CSS.
Here's a guide to import fonts from Google Fonts:
https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html#:~:text=Open%20Google%20Fonts%20and%20follow,(in%20HTML%20or%20CSS).
π I hope this helps you and happy coding!
Marked as helpful0@Neljohn-CereraPosted over 2 years ago@correlucas Thank you for the response sir
0
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