1. Home
  2. Slides
  3. How can I attach custom css font?

How can I attach custom css font?

Here is an example of the custom font being installed locally with CSS:

@font-face {
  font-family: "ProximaNova";
  src: url("fonts/ProximaNova-Bold.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "ProximaNova";
  src: url("fonts/ProximaNova-Regular.woff") format("woff");
  font-weight: 400;
}

* { font-family: "ProximaNova", sans-serif; }

Put the folder with your fonts inside the css folder and attach each one of them for different kinds of weights. Put the code in the custom.css file and make sure you uncomment it from the <head> or bottom of your page (depends on settings you chose before export).

Updated on December 23, 2019

Was this article helpful?

Related Articles

Leave a Comment