A Webfont Generator turns a licensed font file, such as TTF, into web-ready formats and packages the CSS needed to use it on a website. section 18.9
Use it in a few friendly steps:
- Upload the downloaded font file to the Webfont Generator. section 18.9
- Keep WOFF and WOFF2 selected by default, or choose additional formats through Expert options. section 18.9
- Copy the generated @font-face CSS, placing WOFF2 before WOFF, then use its font-family value on the element you want to style. section 18.9
A generated font setup
The package may produce an @font-face rule for a font and let you apply it with font-family: 'Font Name';. section 18.9
@font-face {
font-family: 'Font Name'; #1
src: url('font_filename.woff2') format('woff2'),
url('font_filename.woff') format('woff');
}
Browse the compact @font-face pattern showing WOFF2 before WOFF. section 18.9
