@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");
}
/*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 :: the difference between nth-child() and nth-of-type() |
Css :: css animation stop |
Css :: input type date all css style |
Css :: background repeat |
Css :: css blur border |
Css :: css dot dot dot |
Css :: css transform translate rotate |
Css :: css grid no stretch |
Css :: css glass effect |
Css :: z index div over cursor |
Css :: style highlight css |
Css :: css horizontal scroll cards |
Css :: custom select tailwind css |
Css :: css change link color in class |
Css :: css supports |
Css :: download s3 bucket files on l local |
Css :: div color overlay css |
Css :: css dropdown menu with scrollbar |
Css :: curve bottom of square css |
Css :: fade in transition css |
Css :: how to set text to middle in div |
Css :: css hover but no click |
Css :: import custom font |
Css :: linear gradient border |
Css :: better transition timing functions |
Css :: css transition ease |
Css :: responsive table in tailwind css |
Css :: css columns |
Css :: wkhtmltopdf remove thead repeating |
Css :: z index |