@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: "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 :: arrow left css |
Css :: woocommerce align add to cart buttons css |
Css :: how to hange the color of your cursor in css |
Css :: linear gradient border |
Css :: Bootstrap default accordion arrow icon change |
Css :: rotate keyfreame animation |
Css :: padding in one line |
Css :: table properties css |
Css :: transform multiple css |
Css :: menu always center css |
Css :: force css style in angular |
Css :: css inverted border radius |
Css :: html css tilt text |
Css :: type selector css |
Css :: install tailwind css in react |
Css :: how to center a position fixed element horizontally |
Css :: media min height css |
Css :: z index |
Css :: css %-px |
Css :: css remove white space below footer |
Css :: css absolute position inside div |
Css :: icon borders css |
Css :: bootstrap popover style width |
Css :: css text to fit container |
Css :: how to center image in css |
Css :: move header down css |
Css :: postcss plugin |
Css :: css padding syntax |
Css :: css bullet using ::before |
Css :: css focus-within |