Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


How do I use an online font? I tried using @fontface feature but it didn't work out.

Community feedback

@Call4julius

Posted

To use an online font:

  1. go to fonts.google.com
  2. search the font you want to use by typing the name in the search field
  3. Once you are the font type, click on it and then you will be shown various font-weight (thickness) of the font.
  4. select the various font-weight you would like for your project by clicking the "+" icon at the end of each font.
  5. finally look at the right hand pane, you will find an online url link for the font/s you just selected.
  6. copy and paste the link in the <head> tag of your html
  7. That's it, you can start using the font-family in your css to style.

Marked as helpful

1

@susmitha168

Posted

You can check the style guide under the project for the font family. Use Google fonts for the font family

1

@Sailmaster91

Posted

You can try this too: go to GoogleFont.

Pick the font that you like and select de method @import copy and paste in your css in first line, without the tags

Example: @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&family=Red+Hat+Display:wght@500;700;900&display=swap');

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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