@font-face
noun
say it: “AT FONT FAYSS” /æt fɑnt feɪs/
A CSS at-rule, read "at font face", that gives a font a name and says where to download its file, so you can use that name in font-family.
What does @font-face do?
@font-face names a font and tells the browser where to download it.
@font-face {
font-family: "Inter";
src: url("/fonts/inter.woff2") format("woff2");
font-display: swap;
}
In a sentence
- “I wrote an @font-face rule pointing to fonts/BebasNeue.woff2, then used that font's name for the headings.”
Level: Freelancer · More CSS terms at this level
Updated