@font-face {
// Defining what the font will be called
font-family: thisSpecialFont;
// Linking to the font file
src: url(linkToFontFile.woff);
}
body {
font-family: thisSpecialFont;
}
@font-face {
font-family: "Open Sans";
src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
@font-face {
font-family: 'PacificoRegular';
src: url('Pacifico-webfont.eot');
src: url('Pacifico-webfont.eot?#iefix') format('embedded-opentype'),
url('Pacifico-webfont.woff') format('woff'),
url('Pacifico-webfont.ttf') format('truetype'),
url('Pacifico-webfont.svg#PacificoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Open Sans";
src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
@font-face {
font-family: myFirstFont;
src: url(sansation_light.woff);
}
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot') format('eot'),
url('webfont.ttf') format('truetype'),
url('webfont.woff2') format('woff2'),
url('webfont.woff') format('woff');
}
@font-face {
font-family: "The name of your font for your file";
src: url("The link to your .ttf or .otf file");
}
@font-face { font-family: 'meine-schrift';
src: url('pfad/zu/meinerschrift.ttf') format('truetype'); }
/*set the font name and the url path*/
@font-face {
font-family: customFontName;
src: url(path/to/font/sansation_light.woff);
}
/*add the new font to an element or class, etc*/
p {
font-family: customFontName;
}
.myClass{
font-family: customFontName;
}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Judson:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
add booter-zero zero font css
Code Example |
---|
Css :: materialize css |
Css :: css media query overflow |
Css :: rotate icon |
Css :: hide navbar css |
Css :: add border to png outline css |
Css :: input background color |
Css :: style input field css |
Css :: css grid vs flexbox |
Css :: flex: 0 1 auto |
Css :: content visability auto |
Css :: reference images from css in django |
Css :: css animation box shadow |
Css :: transition behaviour in css |
Css :: css border without changing size |
Css :: Heart Shape Html And Css |
Css :: dropdown size based on text |
Css :: zoom in to picture on html css |
Css :: background origin css |
Css :: css stop text wrapping |
Css :: increase clickable area css |
Css :: font-size |
Css :: details transition css |
Css :: can you control another div on hover css |
Css :: make css variable negative |
Css :: css animation |
Css :: letter spacing text |
Css :: css multiple classes same rule |
Css :: how to allign li in row |
Css :: css icon |
Css :: why is my css not working |