aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-16 10:35:19 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-23 23:30:24 +0900
commitc3988cba4fc1143be7b87fcec4b4b961e24475a4 (patch)
tree9c5c4f8834be81d068dc19031bdc572e197434fe
parentec35860e99aebe90a636a33b40209894ccf6fb36 (diff)
downloadtranslated-content-c3988cba4fc1143be7b87fcec4b4b961e24475a4.tar.gz
translated-content-c3988cba4fc1143be7b87fcec4b4b961e24475a4.tar.bz2
translated-content-c3988cba4fc1143be7b87fcec4b4b961e24475a4.zip
2021/08/13 時点の英語版に同期
-rw-r--r--files/ja/web/css/@font-face/font-display/index.md85
1 files changed, 39 insertions, 46 deletions
diff --git a/files/ja/web/css/@font-face/font-display/index.md b/files/ja/web/css/@font-face/font-display/index.md
index 0a92c17416..366cbf1e4a 100644
--- a/files/ja/web/css/@font-face/font-display/index.md
+++ b/files/ja/web/css/@font-face/font-display/index.md
@@ -3,101 +3,95 @@ title: font-display
slug: Web/CSS/@font-face/font-display
tags:
- '@font-face'
+ - アットルール記述子
- CSS
- CSS フォント
- CSS 記述子
- - font-display
- - ウェブフォント
+ - CSS プロパティ
+ - 実験的
- フォント
- リファレンス
+ - font-display
+ - ウェブフォント
+browser-compat: css.at-rules.font-face.font-display
translation_of: Web/CSS/@font-face/font-display
---
{{CSSRef}}
-<strong>`font-display`</strong> 記述子は、フォントがダウンロード済みで利用できるかに基づいて、どのようにフォントの種類を表示するかを定めます。
+**`font-display`** 記述子は、フォントがダウンロード済みで利用できるかに基づいて、どのようにフォントの種類を表示するかを定めます。
## 構文
-<pre class="brush:css notranslate">/* キーワード値 */
+```css
+/* キーワード値 */
font-display: auto;
font-display: block;
font-display: swap;
font-display: fallback;
-font-display: optional;</pre>
+font-display: optional;
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
- `auto`
- : フォントの表示戦略はユーザーエージェントが定義します。
- `block`
- - : フォントに対して短いブロック期の後、永続的にスワップ期を置きます。
+ - : フォントに対して短いブロック時間の後、永続的にスワップ時間を置きます。
- `swap`
- - : フォントに対して非常に短いブロック期の後、永続的にスワップ期を置きます。
+ - : フォントに対して非常に短いブロック時間の後、永続的にスワップ時間を置きます。
- `fallback`
- - : フォントに対して非常に短いブロック期の後、短いスワップ期を置きます。
+ - : フォントに対して非常に短いブロック時間の後、短いスワップ時間を置きます。
- `optional`
- - : フォントに対して非常に短いブロック期の後、スワップ期を置きません。
+ - : フォントに対して非常に短いブロック時間の後、スワップ時間を置きません。
-<h2 id="Description" name="Description">説明</h2>
+> **Note:** Firefox では、 `gfx.downloadable_fonts.fallback_delay` および `gfx.downloadable_fonts.fallback_delay_short` の設定項目で、それぞれ "short" および "extremely small" の時間が利用できます。
-<h3 id="The_font_display_timeline" name="The_font_display_timeline">フォント表示の過程</h3>
+## 解説
-フォント表示の過程は、ユーザーエージェントが指定されたダウンロードフォントを利用しようとした瞬間に始まります。過程はフォントを利用して任意の要素を表示する振る舞いを説明する、以下の 3 つの時期に分かれます。
+### フォント表示の過程
-- フォントブロック期
- - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は <em>不可視の</em> 代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。
-- フォントスワップ期
- - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。
-- フォント失敗期
- - : フォントが読み込まれていない場合、ユーザーエージェントは読み込みに失敗したとして扱い、通常のフォントで代替を行います。
+フォント表示の過程は、ユーザーエージェントが指定されたダウンロードフォントを利用しようとした瞬間に始まります。過程はフォントを利用して任意の要素を表示する振る舞いを説明する、以下の 3 つの時間に分かれます。
-<h2 id="Formal_definition" name="Formal_definition">定義</h2>
+- フォントブロック時間
+ - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は*不可視の*代替フォントで描画されます。この時間に読み込みに成功したフォントは、通常通りに利用できます。
+- フォントスワップ時間
+ - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は代替フォントで描画されます。この時間に読み込みに成功したフォントは、通常通りに利用できます。
+- フォント失敗時間
+ - : フォントが読み込まれていなければ、ユーザーエージェントは読み込みに失敗したとして扱い、通常のフォントで代替を行います。
+
+## 公式定義
{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">構文</h2>
+## 構文
{{csssyntax}}
## 例
-<h3 id="Specifying_fallback_font-display" name="Specifying_fallback_font-display">font-display のフォールバックを指定する</h3>
+### font-display のフォールバックの指定
-<pre class="brush: css; highlight[7] notranslate">@font-face {
+```css
+@font-face {
font-family: ExampleFont;
src: url(/path/to/fonts/examplefont.woff) format('woff'),
url(/path/to/fonts/examplefont.eot) format('eot');
font-weight: 400;
font-style: normal;
font-display: fallback;
-}</pre>
-
-<h2 id="Specification" name="Specification">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">策定状況</th>
- <th scope="col">コメント</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS4 Fonts', '#font-display-desc', 'font-display')}}</td>
- <td>{{Spec2('CSS4 Fonts')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+}
+```
+
+## 仕様書
+
+{{Specifications}}
## ブラウザーの互換性
-{{Compat("css.at-rules.font-face.font-display")}}
+{{Compat}}
## 関連情報
-<ul>
- {{cssxref("@font-face/font-family", "font-family")}}
- {{cssxref("@font-face/font-stretch", "font-stretch")}}
- {{cssxref("@font-face/font-style", "font-style")}}
@@ -107,4 +101,3 @@ font-display: optional;</pre>
- {{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}
- {{cssxref("@font-face/src", "src")}}
- {{cssxref("@font-face/unicode-range", "unicode-range")}}
-</ul>