Forum Discussion

keithkelly's avatar
3 years ago

Best Practices for adding a 2nd Font-Face?

Similar to previous post, but a bit more vague in case that helps with answer-ability.

I mean, I can add:

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

and

font-family: 'Roboto', sans-serif;

 

But, are there any caching/performance mechanisms I should be leveraging?   Does anyone else use 2 fonts w/ no consequences?

  • Hello keithkelly,
    There are no consequences if you are using 2 fonts, even sometime we also use different fonts. 

    Also, There is no cache mechanism that you should be leveraged. Just import the font and use it, the method should be really quick so no cache require here.

    Regards,
    Abhishek Gupta

  • Hello keithkelly,
    There are no consequences if you are using 2 fonts, even sometime we also use different fonts. 

    Also, There is no cache mechanism that you should be leveraged. Just import the font and use it, the method should be really quick so no cache require here.

    Regards,
    Abhishek Gupta

  • keithkelly Glad you posted this. We're looking to possibly move to a new font Slate or Glosa. 

    Once we acquire the font families I will need to figure out how to import it.