'How to use google fonts in VS code
I am making a resume and I was wondering how to use google fonts in vs code. I downloaded the font but can't figure out how to link it.
Solution 1:[1]
You don't need to download the font at all. All you need to do is:
- go to https://fonts.google.com
- select all the fonts you want to use by clicking on the plus button with "select this style".
- then, at the right side of the screen you can "use on web" click on import
- copy the @import line and paste it into your css
- to use the font, go to right again and down to the bottom, copy the font name.
- paste that in your code where you want to use it.
Solution 2:[2]
Steps:
- search fonts on google fonts.
- Install fonts.
- Open Setting in Vs code editor.
- Go to .json file and Enter the installed fonts.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sokmontrey |
| Solution 2 | Suresh Suthar |
