descriptor
@font-face/src — CSS reference
Ordered resource candidates for the face. Required for a usable rule. The browser tries eligible sources until one loads; local availability is device-dependent. URL sources may require CORS and appropriate hosting. This fixture demonstrates descriptor syntax using a local static face; it does not establish that the declared ranges or features match that font.
Formal Syntax & Structure
css syntaxcss
[ <url> [ format(<font-format>) ]? [ tech(<font-tech>#) ]? | local(<family-name>) ]#Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}@font-face {font-family: LabFace; src: local("DejaVu Sans");}#a{font-family:LabFace, sans-serif}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>