fontface
Font-face refers to the CSS at-rule that enables web pages to use fonts that are not installed on a user’s device. By declaring a font-family and supplying one or more font files through the src descriptor, the browser downloads the font from the server and makes it available for styling text across the page. This allows consistent typography regardless of local fonts and supports brand-specific or decorative type.
The src descriptor can reference multiple formats to maximize compatibility. A typical declaration lists WOFF2 first
Licensing, performance, and accessibility are important considerations. Web fonts should be licensed for web embedding, and
src: url('/fonts/custom.woff2') format('woff2'),
url('/fonts/custom.woff') format('woff');
}
Once defined, the font-family name is used in CSS like any other font.