Home > Enterprise >  How to use google fonts in VS code
How to use google fonts in VS code

Time:02-26

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.

CodePudding user response:

You don't need to download the font at all. All you need to do is:

  1. go to https://fonts.google.com
  2. select all the fonts you want to use by clicking on the plus button with "select this style".
  3. then, at the right side of the screen you can "use on web" click on import
  4. copy the @import line and paste it into your css
  5. to use the font, go to right again and down to the bottom, copy the font name.
  6. paste that in your code where you want to use it.

CodePudding user response:

Steps:

  1. search fonts on google fonts.
  2. Install fonts.
  3. Open Setting in Vs code editor.
  4. Go to .json file and Enter the installed fonts.

enter image description here

  • Related