blob: 5ddcc0c753e6dbcce3818fd53441a9b7c054e459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
---
title: font-family
slug: Web/CSS/@font-face/font-family
tags:
- '@font-face'
- アットルール記述子
- CSS
- CSS 記述子
- CSS フォント
- リファレンス
browser-compat: css.at-rules.font-face.font-family
translation_of: Web/CSS/@font-face/font-family
---
{{CSSRef}}
**`font-family`** は CSS の記述子で、 {{cssxref("@font-face")}} ルールで指定されたフォントのフォントファミリーを指定することができます。
## 構文
```css
/* <string> 値 */
font-family: "font family";
font-family: 'another font family';
/* <custom-ident> 値 */
font-family: examplefont;
```
### 値
- `<family-name>`
- : フォントファミリーの名前を指定します。
## 公式定義
{{cssinfo}}
## 形式文法
{{csssyntax}}
## 例
### フォントファミリー名の設定
```css
@font-face {
font-family: examplefont;
src: url('examplefont.ttf');
}
```
## 仕様書
{{Specifications}}
## ブラウザーの互換性
{{Compat}}
## 関連情報
- {{cssxref("@font-face/font-display", "font-display")}}
- {{cssxref("@font-face/font-stretch", "font-stretch")}}
- {{cssxref("@font-face/font-style", "font-style")}}
- {{cssxref("@font-face/font-weight", "font-weight")}}
- {{cssxref("@font-face/font-variant", "font-variant")}}
- {{cssxref("font-feature-settings", "font-feature-settings")}}
- {{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}
- {{cssxref("@font-face/src", "src")}}
- {{cssxref("@font-face/unicode-range", "unicode-range")}}
|