1@font-face {
2 font-family: GraublauWeb;
3 src: url("path/GraublauWeb.otf") format("opentype");
4}
1@font-face {
2 font-family: "minecraft";
3 src: url("fonts/minecraft.ttf")
4}
5/*Have a Nice Day!!! :)*/
1@font-face {
2 font-family: myFirstFont;
3 src: url(sansation_light.woff);
4}
5
6div {
7 font-family: myFirstFont;
8}
9/*Name the font-family and link the font file in the @font-face rule*/
1@font-face {
2 // Defining what the font will be called
3 font-family: thisSpecialFont;
4 // Linking to the font file
5 src: url(linkToFontFile.woff);
6}
7body {
8 font-family: thisSpecialFont;
9}
1@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
2
1@font-face {
2 font-family: "Open Sans";
3 src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
4 url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
5}