The font-family CSS descriptor allows authors to specify the font family for the font specified in an @font-face rule.

Related at-rule@font-face
Initial valuen/a (required)
Computed valueas specified
Canonical orderthe unique non-ambiguous order defined by the formal grammar


/* <string> values */
font-family: "font family";
font-family: 'another font family';

/* <custom-ident> value */
font-family: examplefont;


Specifies the name of the font family.

Formal syntax


<family-name> = <string> | <custom-ident>+


@font-face {
  font-family: examplefont;
  src: url('examplefont.ttf');


Specification Status Comment
CSS Fonts Module Level 3
The definition of 'font-family' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 6Opera Full support 9Safari Full support 3.1WebView Android Full support 2.2Chrome Android ? Edge Mobile Full support 12Firefox Android Full support 4Opera Android Full support 12Safari iOS Full support 3.1Samsung Internet Android Full support Yes


Full support  
Full support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Last updated by: fscholz,