In your project, you would want to setup your own selected font. This section is a step-by-step guide on how to setup your custom font to your project.
Before moving further, Lets talk about the ways you can setup font in your project:
There could be two ways you could setup fonts in your project:
Via online font resources like Google Fonts
Via your custom web-font kit
Here below, these two ways are going to be detailed one by one.
Via Online Font Resources (Google Fonts)
For this, you will need to visit Google Fonts and pick the font you want to setup in Drift Angular.
Once you hit the + icon and customize the different font-weights you need, you can then go to the EMBED tab and then select @STANDARD tab.
Here on this tab, you will need to copy the entire <link> tag. Just like this is highlighted in the picture below for reference:
After copying the link, you need to place this in the <head> section of your page or layout file.
This is the first step completed successfully and you have font resources included in your project.
Now, the last thing you need to do is, changing the values of font variables in SCSS. For that, you will need to follow the steps explained in Change Font Variables below.
Via Custom Web-Font Kit
For this, first of all, you must have a web-font-kit folder having all web font files.
Then you need to copy that folder into src / assets / fonts / and make sure that you have a style.css file in your web-font kit folder which has all weights and font-family set as given in below example:
Now, the last thing you need to do is, changing the values of font variables in SCSS. For that, you will need to follow the steps explained in Change Font Variables below.
Change Font Variables
In this step, you could change the SCSS variables in the file given below: