font-family

font-family は CSS の記述子で、 @font-face ルールで指定されたフォントのフォントファミリーを指定することができます。

構文

css

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

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

<family-name>

フォントファミリーの名前を指定します。

公式定義

関連するアット規則@font-face
初期値n/a (required)
計算値指定通り

形式文法

font-family = 
<family-name>

フォントファミリー名の設定

css

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

仕様書

Specification
CSS Fonts Module Level 4
# font-family-desc

ブラウザーの互換性

BCD tables only load in the browser

関連情報