Basic use
example.css
@font-face {
font-family: Brand;
src: url(/fonts/brand.woff2) format("woff2");
font-display: swap;
}
Font loading strategies such as font-display reduce invisible text while custom fonts download.
@font-face {
font-family: Brand;
src: url(/fonts/brand.woff2) format("woff2");
font-display: swap;
}@font-face {
font-family: Brand;
src: url(/fonts/brand.woff2) format("woff2");
font-display: swap;
}@font-face {
font-family: Brand;
src: url(/fonts/brand.woff2) format("woff2");
font-display: swap;
}Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful