aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-16 09:42:04 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-23 23:30:24 +0900
commitdec4fdef53365fde289fe07c7c35adfd0b7379e1 (patch)
tree12489cb6449bb8a98ca0fc3bb4bca512d679f03d
parentd3b272864e9272f74876494d4d63c889277f1418 (diff)
downloadtranslated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.tar.gz
translated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.tar.bz2
translated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.zip
Web/CSS/@font-face 以下の記述子の記事を変換準備
-rw-r--r--files/ja/web/css/@font-face/font-display/index.html72
-rw-r--r--files/ja/web/css/@font-face/font-family/index.html44
-rw-r--r--files/ja/web/css/@font-face/font-stretch/index.html98
-rw-r--r--files/ja/web/css/@font-face/font-style/index.html78
-rw-r--r--files/ja/web/css/@font-face/font-variation-settings/index.html48
-rw-r--r--files/ja/web/css/@font-face/font-weight/index.html78
-rw-r--r--files/ja/web/css/@font-face/src/index.html52
-rw-r--r--files/ja/web/css/@font-face/unicode-range/index.html60
8 files changed, 255 insertions, 275 deletions
diff --git a/files/ja/web/css/@font-face/font-display/index.html b/files/ja/web/css/@font-face/font-display/index.html
index 3b11953bba..0a92c17416 100644
--- a/files/ja/web/css/@font-face/font-display/index.html
+++ b/files/ja/web/css/@font-face/font-display/index.html
@@ -12,11 +12,11 @@ tags:
- リファレンス
translation_of: Web/CSS/@font-face/font-display
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>font-display</code></strong> 記述子は、フォントがダウンロード済みで利用できるかに基づいて、どのようにフォントの種類を表示するかを定めます。</p>
+<strong>`font-display`</strong> 記述子は、フォントがダウンロード済みで利用できるかに基づいて、どのようにフォントの種類を表示するかを定めます。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush:css notranslate">/* キーワード値 */
font-display: auto;
@@ -27,43 +27,39 @@ font-display: optional;</pre>
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>auto</code></dt>
- <dd>フォントの表示戦略はユーザーエージェントが定義します。</dd>
- <dt><code>block</code></dt>
- <dd>フォントに対して短いブロック期の後、永続的にスワップ期を置きます。</dd>
- <dt><code>swap</code></dt>
- <dd>フォントに対して非常に短いブロック期の後、永続的にスワップ期を置きます。</dd>
- <dt><code>fallback</code></dt>
- <dd>フォントに対して非常に短いブロック期の後、短いスワップ期を置きます。</dd>
- <dt><code>optional</code></dt>
- <dd>フォントに対して非常に短いブロック期の後、スワップ期を置きません。</dd>
-</dl>
+- `auto`
+ - : フォントの表示戦略はユーザーエージェントが定義します。
+- `block`
+ - : フォントに対して短いブロック期の後、永続的にスワップ期を置きます。
+- `swap`
+ - : フォントに対して非常に短いブロック期の後、永続的にスワップ期を置きます。
+- `fallback`
+ - : フォントに対して非常に短いブロック期の後、短いスワップ期を置きます。
+- `optional`
+ - : フォントに対して非常に短いブロック期の後、スワップ期を置きません。
<h2 id="Description" name="Description">説明</h2>
<h3 id="The_font_display_timeline" name="The_font_display_timeline">フォント表示の過程</h3>
-<p>フォント表示の過程は、ユーザーエージェントが指定されたダウンロードフォントを利用しようとした瞬間に始まります。過程はフォントを利用して任意の要素を表示する振る舞いを説明する、以下の 3 つの時期に分かれます。</p>
+フォント表示の過程は、ユーザーエージェントが指定されたダウンロードフォントを利用しようとした瞬間に始まります。過程はフォントを利用して任意の要素を表示する振る舞いを説明する、以下の 3 つの時期に分かれます。
-<dl>
- <dt>フォントブロック期</dt>
- <dd>フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は <em>不可視の</em> 代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。</dd>
- <dt>フォントスワップ期</dt>
- <dd>フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。</dd>
- <dt>フォント失敗期</dt>
- <dd>フォントが読み込まれていない場合、ユーザーエージェントは読み込みに失敗したとして扱い、通常のフォントで代替を行います。</dd>
-</dl>
+- フォントブロック期
+ - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は <em>不可視の</em> 代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。
+- フォントスワップ期
+ - : フォントが読み込まれていない場合、そのフォントを利用しようとしている要素は代替フォントで描画する必要があります。この時期に読み込みに成功したフォントは、通常通りに利用できます。
+- フォント失敗期
+ - : フォントが読み込まれていない場合、ユーザーエージェントは読み込みに失敗したとして扱い、通常のフォントで代替を行います。
<h2 id="Formal_definition" name="Formal_definition">定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">構文</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Specifying_fallback_font-display" name="Specifying_fallback_font-display">font-display のフォールバックを指定する</h3>
@@ -95,20 +91,20 @@ font-display: optional;</pre>
</tbody>
</table>
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.at-rules.font-face.font-display")}}</p>
+{{Compat("css.at-rules.font-face.font-display")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{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")}}
</ul>
diff --git a/files/ja/web/css/@font-face/font-family/index.html b/files/ja/web/css/@font-face/font-family/index.html
index 3c7f112b44..ae8814bb60 100644
--- a/files/ja/web/css/@font-face/font-family/index.html
+++ b/files/ja/web/css/@font-face/font-family/index.html
@@ -3,18 +3,18 @@ title: font-family
slug: Web/CSS/@font-face/font-family
tags:
- '@font-face'
- - At-rule descriptor
+ - アットルール記述子
- CSS
- CSS Descriptor
- CSS Fonts
- - Reference
+ - リファレンス
translation_of: Web/CSS/@font-face/font-family
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>font-family</code></strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則で指定されたフォントのフォントファミリーを指定することができます。</p>
+<strong>`font-family`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則で指定されたフォントのフォントファミリーを指定することができます。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush: css notranslate">/* &lt;string&gt; 値 */
font-family: "font family";
@@ -26,20 +26,18 @@ font-family: examplefont;
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>&lt;family-name&gt;</code></dt>
- <dd>フォントファミリーの名前を指定します。</dd>
-</dl>
+- `&lt;family-name&gt;`
+ - : フォントファミリーの名前を指定します。
<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Setting_the_font_family_name" name="Setting_the_font_family_name">フォントファミリー名の設定</h3>
@@ -49,7 +47,7 @@ font-family: examplefont;
}
</pre>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -70,18 +68,18 @@ font-family: examplefont;
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.font-family")}}</p>
+{{Compat("css.at-rules.font-face.font-family")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
+- {{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")}}
</ul>
diff --git a/files/ja/web/css/@font-face/font-stretch/index.html b/files/ja/web/css/@font-face/font-stretch/index.html
index 1f0080601a..7f72c04a0b 100644
--- a/files/ja/web/css/@font-face/font-stretch/index.html
+++ b/files/ja/web/css/@font-face/font-stretch/index.html
@@ -4,21 +4,21 @@ slug: Web/CSS/@font-face/font-stretch
tags:
- '@font-face'
- CSS
- - Reference
+ - リファレンス
- descripter
- font-stretch
- 記述子
translation_of: Web/CSS/@font-face/font-stretch
---
-<div>{{CSSRef}}{{draft}}</div>
+{{CSSRef}}{{draft}}
-<p><strong><code>font-stretch</code></strong> は CSS の記述子で、ウェブページ作成者が {{cssxref("@font-face")}} 規則で定義されているフォントが通常か、幅狭か、幅広かを指定できるようにします。</p>
+<strong>`font-stretch`</strong> は CSS の記述子で、ウェブページ作成者が {{cssxref("@font-face")}} 規則で定義されているフォントが通常か、幅狭か、幅広かを指定できるようにします。
-<p>ある特定のフォントについて、作成者は同じフォントの異なるスタイルに対応するさまざまなフォントフェイスをダウンロードでき、<code>font-stretch</code> 記述子を用いることでフォントフェイスのストレッチを明示的に指定します。CSS 記述子の値は、対応するフォントプロパティの値と同じです。</p>
+ある特定のフォントについて、作成者は同じフォントの異なるスタイルに対応するさまざまなフォントフェイスをダウンロードでき、`font-stretch` 記述子を用いることでフォントフェイスのストレッチを明示的に指定します。CSS 記述子の値は、対応するフォントプロパティの値と同じです。
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush: css">/* 単一の値 */
font-stretch: ultra-condensed;
@@ -39,28 +39,26 @@ font-stretch: 75% 125%;
font-stretch: condensed ultra-condensed;;
</pre>
-<p><code>font-weight</code> プロパティは以下にリストとして示されている値のいずれかを使用して記述されます。</p>
+`font-weight` プロパティは以下にリストとして示されている値のいずれかを使用して記述されます。
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>normal</code></dt>
- <dd>普通の文字幅。</dd>
- <dt><code>semi-condensed</code>, <code>condensed</code>, <code>extra-condensed</code>, <code>ultra-condensed</code></dt>
- <dd>通常より幅狭な字を示します。semi-condenced が regular に比べてわずかに幅が細い程度で、そこから右 (ultra-condenced) に向かうにつれてさらに細くなっていきます。</dd>
- <dt><code>semi-expanded</code>, <code>expanded</code>, <code>extra-expanded</code>, <code>ultra-expanded</code></dt>
- <dd>通常より幅広な字を示します。semi-rxpanded がわずかに広い程度で、そこから右 (ultra-expanded) に向かうにつれてさらに広くなっていきます。</dd>
- <dt><code>&lt;percentage&gt;</code></dt>
- <dd>50% から 200% の {{cssxref("&lt;percentage&gt;")}} 値で示します。このプロパティに負の値は許可されていません。</dd>
-</dl>
+- `normal`
+ - : 普通の文字幅。
+- `semi-condensed`, `condensed`, `extra-condensed`, `ultra-condensed`
+ - : 通常より幅狭な字を示します。semi-condenced が regular に比べてわずかに幅が細い程度で、そこから右 (ultra-condenced) に向かうにつれてさらに細くなっていきます。
+- `semi-expanded`, `expanded`, `extra-expanded`, `ultra-expanded`
+ - : 通常より幅広な字を示します。semi-rxpanded がわずかに広い程度で、そこから右 (ultra-expanded) に向かうにつれてさらに広くなっていきます。
+- `&lt;percentage&gt;`
+ - : 50% から 200% の {{cssxref("&lt;percentage&gt;")}} 値で示します。このプロパティに負の値は許可されていません。
-<p><code>font-stretch</code> の旧バージョンではプロパティは上記の <code>&lt;percentage&gt;</code> 以外の 9 つのキーワードのみを許可していましたが、CSS Fonts Level 4 における構文の拡張により<code>&lt;percentage&gt;</code> も使用できるようになりました。これにより、バリアブルフォントは連続した文字幅のようなものを提供できます。TrueType または OpenType バリアブルフォント (後述) の場合、"wdth" バリエーションを使用してさまざまな幅を実装できます。</p>
+`font-stretch` の旧バージョンではプロパティは上記の `&lt;percentage&gt;` 以外の 9 つのキーワードのみを許可していましたが、CSS Fonts Level 4 における構文の拡張により`&lt;percentage&gt;` も使用できるようになりました。これにより、バリアブルフォントは連続した文字幅のようなものを提供できます。TrueType または OpenType バリアブルフォント (後述) の場合、"wdth" バリエーションを使用してさまざまな幅を実装できます。
-<p>フォントが指定された値と完全に一致するフェイスが提供されない場合、100% 未満の値は幅狭に現像され、100% 以上の値は幅広に現像されます。</p>
+フォントが指定された値と完全に一致するフェイスが提供されない場合、100% 未満の値は幅狭に現像され、100% 以上の値は幅広に現像されます。
<h3 id="Keyword_to_numeric_mapping" name="Keyword_to_numeric_mapping">キーワードとパーセント値の対照表</h3>
-<p>以下の表はキーワード指定の際の字幅と <code>&lt;percentage&gt;</code> 指定時の幅の違いを示します:</p>
+以下の表はキーワード指定の際の字幅と `&lt;percentage&gt;` 指定時の幅の違いを示します:
<table class="fullwidth-table standard-table">
<thead>
@@ -71,39 +69,39 @@ font-stretch: condensed ultra-condensed;;
</thead>
<tbody>
<tr>
- <td><code>ultra-condensed</code></td>
+ <td>`ultra-condensed`</td>
<td>50%</td>
</tr>
<tr>
- <td><code>extra-condensed</code></td>
+ <td>`extra-condensed`</td>
<td>62.5%</td>
</tr>
<tr>
- <td><code>condensed</code></td>
+ <td>`condensed`</td>
<td>75%</td>
</tr>
<tr>
- <td><code>semi-condensed</code></td>
+ <td>`semi-condensed`</td>
<td>87.5%</td>
</tr>
<tr>
- <td><code>normal</code></td>
+ <td>`normal`</td>
<td>100%</td>
</tr>
<tr>
- <td><code>semi-expanded</code></td>
+ <td>`semi-expanded`</td>
<td>112.5%</td>
</tr>
<tr>
- <td><code>expanded</code></td>
+ <td>`expanded`</td>
<td>125%</td>
</tr>
<tr>
- <td><code>extra-expanded</code></td>
+ <td>`extra-expanded`</td>
<td>150%</td>
</tr>
<tr>
- <td><code>ultra-expanded</code></td>
+ <td>`ultra-expanded`</td>
<td>200%</td>
</tr>
</tbody>
@@ -111,19 +109,19 @@ font-stretch: condensed ultra-condensed;;
<h3 id="Variable_fonts" name="Variable_fonts">バリアブル (可変) フォント</h3>
-<p>ほとんどのフォントはキーワードの 1 つに対応する特定の幅を持ちます。しかしながら、バリアブル (可変) フォントと呼ばれる一部のフォントはきめ細かい精度で一連の伸縮が可能になっています。これにより、デザイナーは選択したウェイトをより厳密に制御できます。 これにはパーセント範囲が役立ちます。</p>
+ほとんどのフォントはキーワードの 1 つに対応する特定の幅を持ちます。しかしながら、バリアブル (可変) フォントと呼ばれる一部のフォントはきめ細かい精度で一連の伸縮が可能になっています。これにより、デザイナーは選択したウェイトをより厳密に制御できます。 これにはパーセント範囲が役立ちます。
-<p>TrueType または OpenType 可変フォントの場合、"wdth" バリエーションを使用して、さまざまなグリフ幅を実装します。</p>
+TrueType または OpenType 可変フォントの場合、"wdth" バリエーションを使用して、さまざまなグリフ幅を実装します。
-<p>以下の例が動作するには、CSS Fonts Level 4 構文をサポートするブラウザーが必要です。この構文では font-weight は 1 から 1000 の任意の数値にできます。</p>
+以下の例が動作するには、CSS Fonts Level 4 構文をサポートするブラウザーが必要です。この構文では font-weight は 1 から 1000 の任意の数値にできます。
-<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<p>以下はローカルの Open Sans 書体をインポートし、normal、semi-condensed、ならびに semi-expanded を使用できるようにするものです。</p>
+以下はローカルの Open Sans 書体をインポートし、normal、semi-condensed、ならびに semi-expanded を使用できるようにするものです。
<pre class="brush: css">@font-face {
font-family: "Open Sans";
@@ -134,14 +132,14 @@ font-stretch: condensed ultra-condensed;;
<h2 id="Accessibility_concerns" name="Accessibility_concerns">アクセシビリティの考慮事項</h2>
-<p>特にフォントの<a href="/ja/docs/Web/CSS/color#Accessibility_concerns">コントラストカラー比が低い</a>場合、識字障害をはじめとする認知症状のある人は凝縮しすぎたフォントを読むのが困難になる場合があります。詳細は以下をご覧ください。</p>
+特にフォントの[コントラストカラー比が低い](/ja/docs/Web/CSS/color#Accessibility_concerns)場合、識字障害をはじめとする認知症状のある人は凝縮しすぎたフォントを読むのが困難になる場合があります。詳細は以下をご覧ください。
<ul>
- <li><a href="/ja/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.4_Make_it_easier_for_users_to_see_and_hear_content_including_separating_foreground_from_background">MDN 「知覚可能」、ガイドライン 1.4 の説明</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html" rel="noopener">Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0</a> (英語)</li>
+- [MDN 「知覚可能」、ガイドライン 1.4 の説明](/ja/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.4_Make_it_easier_for_users_to_see_and_hear_content_including_separating_foreground_from_background)
+- [Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html" rel="noopener) (英語)
</ul>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -167,18 +165,18 @@ font-stretch: condensed ultra-condensed;;
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.font-stretch")}}</p>
+{{Compat("css.at-rules.font-face.font-stretch")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range descriptor")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{cssxref("@font-face/font-weight", "font-weight")}}
+- {{cssxref("@font-face/font-style", "font-style")}}
+- {{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 descriptor")}}
</ul>
diff --git a/files/ja/web/css/@font-face/font-style/index.html b/files/ja/web/css/@font-face/font-style/index.html
index fe8b4c578f..d688077108 100644
--- a/files/ja/web/css/@font-face/font-style/index.html
+++ b/files/ja/web/css/@font-face/font-style/index.html
@@ -3,20 +3,20 @@ title: font-style
slug: Web/CSS/@font-face/font-style
tags:
- '@font-face'
- - At-rule descriptor
+ - アットルール記述子
- CSS
- CSS Descriptor
- CSS Fonts
- - Reference
+ - リファレンス
translation_of: Web/CSS/@font-face/font-style
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>font-style</code></strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で指定されたフォントのフォントスタイルを指定することができます。</p>
+<strong>`font-style`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で指定されたフォントのフォントスタイルを指定することができます。
-<p>特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 <code>font-style</code> 記述子を使用してフォントフェイスのスタイルを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。</p>
+特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 `font-style` 記述子を使用してフォントフェイスのスタイルを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush: css notranslate">font-style: normal;
font-style: italic;
@@ -27,48 +27,44 @@ font-style: oblique 30deg 50deg;
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>normal</code></dt>
- <dd>フォントファミリの通常の版を選択します。</dd>
- <dt><code>italic</code></dt>
- <dd>フォントフェイスが通常のフォントのイタリック版であることを指定します。</dd>
- <dt><code>oblique</code></dt>
- <dd>フォントフェイスが通常のフォントを機械的に傾けたものであることを指定します。</dd>
-</dl>
-
-<dl>
- <dt><code>oblique</code> と角度</dt>
- <dd><code>oblique</code> として分類されたフォントを選択し、テキストの角度を追加で指定します。</dd>
- <dt><code>oblique</code> と角度の範囲</dt>
- <dd><code>oblique</code> として分類されたフォントを選択し、テキストの角度の範囲を追加で指定します。なお、範囲は <code>font-style</code> が <code>oblique</code> であるときにだけ対応しています。 <code>font-style: normal</code> 又は <code>italic</code> の場合は、第二の値は許可されません。</dd>
-</dl>
+- `normal`
+ - : フォントファミリの通常の版を選択します。
+- `italic`
+ - : フォントフェイスが通常のフォントのイタリック版であることを指定します。
+- `oblique`
+ - : フォントフェイスが通常のフォントを機械的に傾けたものであることを指定します。
+
+- `oblique` と角度
+ - : `oblique` として分類されたフォントを選択し、テキストの角度を追加で指定します。
+- `oblique` と角度の範囲
+ - : `oblique` として分類されたフォントを選択し、テキストの角度の範囲を追加で指定します。なお、範囲は `font-style` が `oblique` であるときにだけ対応しています。 `font-style: normal` 又は `italic` の場合は、第二の値は許可されません。
<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Specifying_an_italic_font_style" name="Specifying_an_italic_font_style">イタリックフォントスタイルの指定</h3>
-<p>例として、 garamond フォントファミリを指定すると、基本の形として、以下の結果が得られます。</p>
+例として、 garamond フォントファミリを指定すると、基本の形として、以下の結果が得られます。
<pre class="brush: css notranslate">@font-face {
font-family: garamond;
src: url('garamond.ttf');
}</pre>
-<p><img alt="スタイルなしの garamond" src="https://mdn.mozillademos.org/files/12265/garamondunstyled.JPG" style="height: 101px; width: 276px;"></p>
+<img alt="スタイルなしの garamond" src="https://mdn.mozillademos.org/files/12265/garamondunstyled.JPG" style="height: 101px; width: 276px;">
-<p>このテキストのイタリック版は、スタイルなしの版と同じ字形を使用しますが、人工的に数度だけ傾けてあります。</p>
+このテキストのイタリック版は、スタイルなしの版と同じ字形を使用しますが、人工的に数度だけ傾けてあります。
-<p><img alt="人工的に傾けた garamond" src="https://mdn.mozillademos.org/files/12267/garamondartificialstyle.JPG" style="height: 101px; width: 276px;"></p>
+<img alt="人工的に傾けた garamond" src="https://mdn.mozillademos.org/files/12267/garamondartificialstyle.JPG" style="height: 101px; width: 276px;">
-<p>一方で、フォントファミリに真にイタリックである版がある場合、 <code>src</code> 記述子を含めてそのフォントがイタリックだと指定することで、フォントがイタリックになることが明確になります。本当のイタリックは異なる字形を用い、少し右上に傾いており、いくらか固有の特徴を持ち、一般に丸みを帯びており、筆記体に似た品質です。これらのフォントはフォントのデザイナーによって特別に作成されたものであり、人工的に傾けたものでは<strong>ありません</strong>。</p>
+一方で、フォントファミリに真にイタリックである版がある場合、 `src` 記述子を含めてそのフォントがイタリックだと指定することで、フォントがイタリックになることが明確になります。本当のイタリックは異なる字形を用い、少し右上に傾いており、いくらか固有の特徴を持ち、一般に丸みを帯びており、筆記体に似た品質です。これらのフォントはフォントのデザイナーによって特別に作成されたものであり、人工的に傾けたものでは<strong>ありません</strong>。
<pre class="brush: css notranslate">@font-face {
font-family: garamond;
@@ -76,9 +72,9 @@ font-style: oblique 30deg 50deg;
font-style: italic;
}</pre>
-<p><img alt="イタリックの garamond" src="https://mdn.mozillademos.org/files/12269/garamonditalic.JPG" style="height: 101px; width: 267px;"></p>
+<img alt="イタリックの garamond" src="https://mdn.mozillademos.org/files/12269/garamonditalic.JPG" style="height: 101px; width: 267px;">
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -104,18 +100,18 @@ font-style: oblique 30deg 50deg;
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.font-style")}}</p>
+{{Compat("css.at-rules.font-face.font-style")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{cssxref("@font-face/font-stretch", "font-stretch")}}
+- {{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")}}
</ul>
diff --git a/files/ja/web/css/@font-face/font-variation-settings/index.html b/files/ja/web/css/@font-face/font-variation-settings/index.html
index 00c09ea62f..f18e3ade87 100644
--- a/files/ja/web/css/@font-face/font-variation-settings/index.html
+++ b/files/ja/web/css/@font-face/font-variation-settings/index.html
@@ -7,16 +7,16 @@ tags:
- CSS Descriptor
- CSS Fonts
- CSS 記述子
- - Reference
+ - リファレンス
translation_of: Web/CSS/@font-face/font-variation-settings
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>font-variation-settings</code></strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で OpenType または TrueType の低レベルのフォントバリエーションを指定することができます。</p>
+<strong>`font-variation-settings`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で OpenType または TrueType の低レベルのフォントバリエーションを指定することができます。
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<div class="syntaxbox">
<pre class="brush: css">/* 既定の設定を使用 */
@@ -28,18 +28,16 @@ font-variation-settings: "xhgt" 0.7;</pre>
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>normal</code></dt>
- <dd>テキストは既定の設定を使用してレイアウトされます。</dd>
- <dt><code>&lt;string&gt; &lt;number&gt;</code></dt>
- <dd>テキストを描画するとき、 OpenType 軸名のリストがテキストレイアウトエンジンに渡され、フォント機能を有効化または無効化します。それぞれの設定は常に {{cssxref("&lt;string&gt;")}} が4つの ASCII 文字で、その後に字句の値を示す {{cssxref("number")}} が続きます。 <code>&lt;string&gt;</code> の長さが異なっていたり U+20 - U+7E 以外のコードポイントの範囲の文字が含まれていたりした場合は、プロパティ全体が無効になります。 <code>&lt;number&gt;</code> は小数や負の数を取ることができます。</dd>
-</dl>
+- `normal`
+ - : テキストは既定の設定を使用してレイアウトされます。
+- `&lt;string&gt; &lt;number&gt;`
+ - : テキストを描画するとき、 OpenType 軸名のリストがテキストレイアウトエンジンに渡され、フォント機能を有効化または無効化します。それぞれの設定は常に {{cssxref("&lt;string&gt;")}} が4つの ASCII 文字で、その後に字句の値を示す {{cssxref("number")}} が続きます。 `&lt;string&gt;` の長さが異なっていたり U+20 - U+7E 以外のコードポイントの範囲の文字が含まれていたりした場合は、プロパティ全体が無効になります。 `&lt;number&gt;` は小数や負の数を取ることができます。
-<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<pre class="brush: css">@font-face {
font-family: 'OpenTypeFont';
@@ -49,7 +47,7 @@ font-variation-settings: "xhgt" 0.7;</pre>
font-variation-settings: 'wght' 400, 'wdth' 300;
}</pre>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -70,18 +68,18 @@ font-variation-settings: "xhgt" 0.7;</pre>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.font-variation-settings")}}</p>
+{{Compat("css.at-rules.font-face.font-variation-settings")}}
-<h2 id="See_Also" name="See_Also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{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/src", "src")}}
+- {{cssxref("@font-face/unicode-range", "unicode-range")}}
</ul>
diff --git a/files/ja/web/css/@font-face/font-weight/index.html b/files/ja/web/css/@font-face/font-weight/index.html
index 16eba4cfbd..ef2d5b0919 100644
--- a/files/ja/web/css/@font-face/font-weight/index.html
+++ b/files/ja/web/css/@font-face/font-weight/index.html
@@ -3,22 +3,22 @@ title: font-weight
slug: Web/CSS/@font-face/font-weight
tags:
- '@font-face'
- - At-rule descriptor
+ - アットルール記述子
- CSS
- - Reference
- - descriptor
+ - リファレンス
+ - 記述子
- font-weight
translation_of: Web/CSS/@font-face/font-weight
---
-<p>{{CSSRef}}</p>
+{{CSSRef}}
-<p><strong><code>font-weight</code></strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則で指定されたフォントの太さを指定することができます。別に {{cssxref("font-weight")}} プロパティを使用して、テキストを表示する文字の太さや細さを設定することができます。</p>
+<strong>`font-weight`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則で指定されたフォントの太さを指定することができます。別に {{cssxref("font-weight")}} プロパティを使用して、テキストを表示する文字の太さや細さを設定することができます。
-<p>特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 <code>font-weight</code> 記述子を使用してフォントフェイスの太さを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。</p>
+特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 `font-weight` 記述子を使用してフォントフェイスの太さを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。
-<p>一般に、特定のフォントファミリには限られた太さのみが利用できます。指定された太さが存在しない場合、近い太さが使用されます。太字がないフォントでは、ふつうはユーザーエージェントが合成します。これを抑止するには、 {{cssxref('font-synthesis')}} プロパティを使用してください。</p>
+一般に、特定のフォントファミリには限られた太さのみが利用できます。指定された太さが存在しない場合、近い太さが使用されます。太字がないフォントでは、ふつうはユーザーエージェントが合成します。これを抑止するには、 {{cssxref('font-synthesis')}} プロパティを使用してください。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="notranslate">/* 単一の値 */
font-weight: normal;
@@ -30,26 +30,24 @@ font-weight: normal bold;
font-weight: 300 500;
</pre>
-<p><code>font-weight</code> プロパティは、以下に挙げる値のうちの一つを使用して記述します。</p>
+`font-weight` プロパティは、以下に挙げる値のうちの一つを使用して記述します。
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>normal</code></dt>
- <dd>通常のフォントの太さです。 <code>400</code> と同じです。</dd>
- <dt><code>bold</code></dt>
- <dd>太字のフォントの太さです。 <code>700</code> と同じです。</dd>
- <dt><code>&lt;number&gt;</code></dt>
- <dd>1 以上 1000 以下の {{cssxref("&lt;number&gt;")}} 値です。数値が大きいと、数値が小さい物より太さが太い (又は同じ) ことを表します。よく使用される値は、以下の<a href="#Common_weight_name_mapping">一般的な太さ名との対応</a>にあるように、共通の太さ名に対応しています。</dd>
-</dl>
+- `normal`
+ - : 通常のフォントの太さです。 `400` と同じです。
+- `bold`
+ - : 太字のフォントの太さです。 `700` と同じです。
+- `&lt;number&gt;`
+ - : 1 以上 1000 以下の {{cssxref("&lt;number&gt;")}} 値です。数値が大きいと、数値が小さい物より太さが太い (又は同じ) ことを表します。よく使用される値は、以下の[一般的な太さ名との対応](#Common_weight_name_mapping)にあるように、共通の太さ名に対応しています。
-<p><code>font-weight</code> 仕様書の古いバージョンでは、このプロパティはキーワード値と数値 100, 200, 300, 400, 500, 600, 700, 800, 900 のみを受け付けていました。可変フォント以外では実際にはこれらのセット値しか利用できません。ただし、可変フォント以外では細かい値 (例えば 451) は、これらの値のいずれかに変換されます。</p>
+`font-weight` 仕様書の古いバージョンでは、このプロパティはキーワード値と数値 100, 200, 300, 400, 500, 600, 700, 800, 900 のみを受け付けていました。可変フォント以外では実際にはこれらのセット値しか利用できません。ただし、可変フォント以外では細かい値 (例えば 451) は、これらの値のいずれかに変換されます。
-<p>CSS Fonts レベル 4 では、構文を拡張して 1 から 1000 までの任意の数値を受け付けるようになり、{{anch("Variable fonts", "可変フォント")}}が導入され、フォントの太さにもっと細かい範囲を使用することができるようになりました。</p>
+CSS Fonts レベル 4 では、構文を拡張して 1 から 1000 までの任意の数値を受け付けるようになり、{{anch("Variable fonts", "可変フォント")}}が導入され、フォントの太さにもっと細かい範囲を使用することができるようになりました。
<h3 id="Common_weight_name_mapping" name="Common_weight_name_mapping">良くある太さ名の対応</h3>
-<p><code>100</code> から <code>900</code> の数値は、おおよそ以下の太さ名に対応します。</p>
+`100` から `900` の数値は、おおよそ以下の太さ名に対応します。
<table>
<thead>
@@ -100,32 +98,32 @@ font-weight: 300 500;
<h3 id="Variable_fonts" name="Variable_fonts">可変フォント</h3>
-<p>多くのフォントは、<a href="#Common_weight_name_mapping">一般的な太さ名との対応</a>の中の数値の一つに対応する特定の太さを持っています。しかし、可変フォントと呼ばれる一部のフォントは、もっと高い又は低い粒度の太さの範囲に対応しており、これにより、デザイナーは選択した太さをより詳細に制御することができます。</p>
+多くのフォントは、[一般的な太さ名との対応](#Common_weight_name_mapping)の中の数値の一つに対応する特定の太さを持っています。しかし、可変フォントと呼ばれる一部のフォントは、もっと高い又は低い粒度の太さの範囲に対応しており、これにより、デザイナーは選択した太さをより詳細に制御することができます。
-<p>TrueType や OpenType の可変フォントでは、 "wght" バリエーションが様々な幅を実装するために使用されます。</p>
+TrueType や OpenType の可変フォントでは、 "wght" バリエーションが様々な幅を実装するために使用されます。
<h2 id="Accessibility_concerns" name="Accessibility_concerns">アクセシビリティの考慮</h2>
-<p>弱視の人は、 <code>font-weight</code> の値が <code>100</code> (Thin/Hairline) または <code>200</code> (Extra Light) の場合、特にフォントの<a href="/ja/docs/Web/CSS/color#Accessibility_concerns">コントラスト比が低い場合</a>は、テキストを読むのが難しくなることがあります。</p>
+弱視の人は、 `font-weight` の値が `100` (Thin/Hairline) または `200` (Extra Light) の場合、特にフォントの[コントラスト比が低い場合](/ja/docs/Web/CSS/color#Accessibility_concerns)は、テキストを読むのが難しくなることがあります。
<ul>
- <li><a href="/ja/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.4_Make_it_easier_for_users_to_see_and_hear_content_including_separating_foreground_from_background">MDN "WCAG を理解する ― ガイドライン 1.4 の解説"</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html" rel="noopener">Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0</a></li>
+- [MDN "WCAG を理解する ― ガイドライン 1.4 の解説"](/ja/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.4_Make_it_easier_for_users_to_see_and_hear_content_including_separating_foreground_from_background)
+- [Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html" rel="noopener)
</ul>
<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Setting_normal_font_weight_in_a_font-face_rule" name="Setting_normal_font_weight_in_a_font-face_rule">@font-face 規則における通常のフォントの太さの設定</h3>
-<p>以下の例は、ローカルの Open Sans フォントを見つけるか、またはそれをインポートして、通常の太さのフォントを使用することができます。</p>
+以下の例は、ローカルの Open Sans フォントを見つけるか、またはそれをインポートして、通常の太さのフォントを使用することができます。
<pre class="notranslate">@font-face {
font-family: "Open Sans";
@@ -134,7 +132,7 @@ font-weight: 300 500;
font-weight: 400;
}</pre>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -160,18 +158,18 @@ font-weight: 300 500;
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.font-weight")}}</p>
+{{Compat("css.at-rules.font-face.font-weight")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range descriptor")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{cssxref("@font-face/font-stretch", "font-stretch")}}
+- {{cssxref("@font-face/font-style", "font-style")}}
+- {{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 descriptor")}}
</ul>
diff --git a/files/ja/web/css/@font-face/src/index.html b/files/ja/web/css/@font-face/src/index.html
index ddb05bcf5a..c7c6478916 100644
--- a/files/ja/web/css/@font-face/src/index.html
+++ b/files/ja/web/css/@font-face/src/index.html
@@ -3,19 +3,19 @@ title: src
slug: Web/CSS/@font-face/src
tags:
- '@font-face'
- - At-rule descriptor
+ - アットルール記述子
- CSS
- CSS Descriptor
- CSS Fonts
- CSS Property
- - Reference
+ - リファレンス
translation_of: Web/CSS/@font-face/src
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>src</code></strong> は CSS における {{cssxref("@font-face")}} 規則の 記述子で、フォントデータを含むリソースを指定します。 <code>@font-face</code> 規則を有効にするためには必要です。</p>
+<strong>`src`</strong> は CSS における {{cssxref("@font-face")}} 規則の 記述子で、フォントデータを含むリソースを指定します。 `@font-face` 規則を有効にするためには必要です。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush: css notranslate">/* &lt;url&gt; 値 */
src: url(https://somewebsite.com/path/to/font.woff); /* 絶対 URL */
@@ -37,28 +37,26 @@ src: local(font), url(path/to/font.svg) format("svg"),
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><code>&lt;url&gt; [ format( &lt;string&gt;# ) ]?</code></dt>
- <dd>{{cssxref("&lt;url&gt;")}} と、続けて任意で <code id="format()">format()</code> 関数で URL で参照するフォントリソースの形式を記述して外部参照を指定します。形式のヒントには、知られているフォント形式を示す書式文字列をカンマで区切ったリストを指定します。ユーザーエージェントが指定した形式に対応していない場合は、フォントリソースをのダウンロードを飛ばします。形式のヒントが指定されていない場合は、フォントリソースはが常にダウンロードされます。</dd>
- <dt><code>&lt;font-face-name&gt;</code></dt>
- <dd><code id="local()">local()</code> を使用して、ローカルに導入されたフォントフェイスを、より大きなフォントファミリ内で単一のフォントフェイスを一意に識別する名前で指定します。任意で名前を引用符で囲むことができます。</dd>
-</dl>
+- `&lt;url&gt; [ format( &lt;string&gt;# ) ]?`
+ - : {{cssxref("&lt;url&gt;")}} と、続けて任意で <code id="format()">format()</code> 関数で URL で参照するフォントリソースの形式を記述して外部参照を指定します。形式のヒントには、知られているフォント形式を示す書式文字列をカンマで区切ったリストを指定します。ユーザーエージェントが指定した形式に対応していない場合は、フォントリソースをのダウンロードを飛ばします。形式のヒントが指定されていない場合は、フォントリソースはが常にダウンロードされます。
+- `&lt;font-face-name&gt;`
+ - : <code id="local()">local()</code> を使用して、ローカルに導入されたフォントフェイスを、より大きなフォントファミリ内で単一のフォントフェイスを一意に識別する名前で指定します。任意で名前を引用符で囲むことができます。
<h2 id="Description" name="Description">解説</h2>
-<p>値は、外部参照またはローカルにインストールされたフォントフェイス名を、カンマで区切った優先度付きリストです。フォントが必要になった時、{{glossary("user agent", "ユーザーエージェント")}}はリスト上の参照を走査し、アクティブ化に成功した最初の物を使用します。無効なデータを持ったフォントや見つからないローカルのフォントは無視され、ユーザーエージェントはリスト上の次のフォントを読み込みます。</p>
+値は、外部参照またはローカルにインストールされたフォントフェイス名を、カンマで区切った優先度付きリストです。フォントが必要になった時、{{glossary("user agent", "ユーザーエージェント")}}はリスト上の参照を走査し、アクティブ化に成功した最初の物を使用します。無効なデータを持ったフォントや見つからないローカルのフォントは無視され、ユーザーエージェントはリスト上の次のフォントを読み込みます。
-<p>CSS のその他の URL と同様に、相対 URL を使用することができ、この場合は <code>@font-face</code> 規則を含むスタイルシートの位置からの相対になります。 SVG フォントの場合、 URL は SVG フォント定義を含む文書内の要素を指します。要素への参照が省略された場合は、参照は最初に定義されたフォントを含みます。同様に、複数のフォントを持つフォントコンテナー形式では、 <code>@font-face</code> 規則で指定された一つだけを読み込みます。読み込むフォントを示すためにはフラグメント識別子を使用します。コンテナー形式がフラグメントで識別する方法を持たない場合は、1から始まる添字 (例えば "font-collection#1" が最初のフォント、 "font-collection#2" が二番目のフォント、など) が使用されます。</p>
+CSS のその他の URL と同様に、相対 URL を使用することができ、この場合は `@font-face` 規則を含むスタイルシートの位置からの相対になります。 SVG フォントの場合、 URL は SVG フォント定義を含む文書内の要素を指します。要素への参照が省略された場合は、参照は最初に定義されたフォントを含みます。同様に、複数のフォントを持つフォントコンテナー形式では、 `@font-face` 規則で指定された一つだけを読み込みます。読み込むフォントを示すためにはフラグメント識別子を使用します。コンテナー形式がフラグメントで識別する方法を持たない場合は、1から始まる添字 (例えば "font-collection#1" が最初のフォント、 "font-collection#2" が二番目のフォント、など) が使用されます。
<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Specifying_font_resources_using_url_and_local" name="Specifying_font_resources_using_url_and_local">url() と local() を使用したフォントリソースの指定</h3>
@@ -70,7 +68,7 @@ src: local(font), url(path/to/font.svg) format("svg"),
}
</pre>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -91,18 +89,18 @@ src: local(font), url(path/to/font.svg) format("svg"),
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.src")}}</p>
+{{Compat("css.at-rules.font-face.src")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{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/unicode-range", "unicode-range")}}
</ul>
diff --git a/files/ja/web/css/@font-face/unicode-range/index.html b/files/ja/web/css/@font-face/unicode-range/index.html
index e51f494923..c2c394befd 100644
--- a/files/ja/web/css/@font-face/unicode-range/index.html
+++ b/files/ja/web/css/@font-face/unicode-range/index.html
@@ -2,21 +2,21 @@
title: unicode-range
slug: Web/CSS/@font-face/unicode-range
tags:
- - At-rule descriptor
+ - アットルール記述子
- CSS
- CSS Fonts
- CSS Property
- Experimental
- Layout
- - Reference
+ - リファレンス
- Web
translation_of: Web/CSS/@font-face/unicode-range
---
-<div>{{cssref}}</div>
+{{cssref}}
-<p><strong><code>unicode-range</code></strong> は CSS の記述子で、 {{cssxref("@font-face")}} で定義されたフォントから使用される特定の文字範囲を設定し、現在のページで使用できるようにします。ページがこの範囲内の文字を使用しない場合、フォントはダウンロードされません。少なくとも 1 つの文字を使用すると、フォント全体がダウンロードされます。</p>
+<strong>`unicode-range`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} で定義されたフォントから使用される特定の文字範囲を設定し、現在のページで使用できるようにします。ページがこの範囲内の文字を使用しない場合、フォントはダウンロードされません。少なくとも 1 つの文字を使用すると、フォント全体がダウンロードされます。
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
<pre class="brush:css notranslate">/* &lt;unicode-range&gt; 値 */
unicode-range: U+26; /* 単一の符号位置 */
@@ -28,34 +28,32 @@ unicode-range: U+0025-00FF, U+4??; /* 複数の値 */
<h3 id="Values" name="Values">値</h3>
-<dl>
- <dt><em><strong>単一の符号位置</strong></em></dt>
- <dd>単一の Unicode 符号位置。例: <code>U+26</code>.</dd>
- <dt><em><strong>符号位置の範囲</strong></em></dt>
- <dd>Unicode 符号位置の範囲。例えば、 <code>U+0025-00FF</code> は、 <em><code>U+0025</code> から <code>U+00FF</code> の範囲内の全文字を含む</em>こと意味します。</dd>
- <dt><em><strong>ワイルドカードの範囲</strong></em></dt>
- <dd>ワイルドカード文字を含む Unicode 符号位置の範囲。 <code>'?'</code> 文字を使用します。例えば、<code>U+4??</code> は <em><code>U+400</code> から <code>U+4FF</code> の範囲の全文字を含む</em>ことを意味します。</dd>
-</dl>
+- <em><strong>単一の符号位置</strong></em>
+ - : 単一の Unicode 符号位置。例: `U+26`.
+- <em><strong>符号位置の範囲</strong></em>
+ - : Unicode 符号位置の範囲。例えば、 `U+0025-00FF` は、 <em>`U+0025` から `U+00FF` の範囲内の全文字を含む</em>こと意味します。
+- <em><strong>ワイルドカードの範囲</strong></em>
+ - : ワイルドカード文字を含む Unicode 符号位置の範囲。 `'?'` 文字を使用します。例えば、`U+4??` は <em>`U+400` から `U+4FF` の範囲の全文字を含む</em>ことを意味します。
<h2 id="Description" name="Description">解説</h2>
-<p>この記述子の目的は、ブラウザーが特定のページのテキストコンテンツに必要なフォントリソースをダウンロードするだけで済むように、フォントリソースをセグメント化できるようにすることです。たとえば、ローカライズが多いサイトでは、英語、ギリシャ語、日本語のフォントリソースを個別に提供できます。英語版のページを閲覧しているユーザーには、ギリシャ語と日本語のフォントのフォントリソースをダウンロードする必要はなく、帯域幅を節約できます。</p>
+この記述子の目的は、ブラウザーが特定のページのテキストコンテンツに必要なフォントリソースをダウンロードするだけで済むように、フォントリソースをセグメント化できるようにすることです。たとえば、ローカライズが多いサイトでは、英語、ギリシャ語、日本語のフォントリソースを個別に提供できます。英語版のページを閲覧しているユーザーには、ギリシャ語と日本語のフォントのフォントリソースをダウンロードする必要はなく、帯域幅を節約できます。
<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-<p>{{cssinfo}}</p>
+{{cssinfo}}
<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
<h3 id="Using_a_different_font_for_a_single_character">Using a different font for a single character</h3>
-<p>異なるフォントでスタイルを設定したいアンパサンド (アンド記号) を含む 1 つの {{HTMLElement("div")}} 要素を持つだけの HTML を作成します。明確にするために、テキストにはサンセリフフォントの <em>Helvetica</em> を使用し、アンパサンドにはセリフフォントの <em>Times New Roman</em> を使用します。</p>
+異なるフォントでスタイルを設定したいアンパサンド (アンド記号) を含む 1 つの {{HTMLElement("div")}} 要素を持つだけの HTML を作成します。明確にするために、テキストにはサンセリフフォントの <em>Helvetica</em> を使用し、アンパサンドにはセリフフォントの <em>Times New Roman</em> を使用します。
-<p>CSS において、1 つの文字だけを含んだ完全に別個の {{cssxref("@font-face")}} を定義していることが分かります。つまりこの文字だけがこのフォントでスタイルされることになります。これはアンパサンドを {{HTMLElement("span")}} 内に入れて別のフォントを適用することによっても可能ですが、それには余分な要素とルールセットが必要です。</p>
+CSS において、1 つの文字だけを含んだ完全に別個の {{cssxref("@font-face")}} を定義していることが分かります。つまりこの文字だけがこのフォントでスタイルされることになります。これはアンパサンドを {{HTMLElement("span")}} 内に入れて別のフォントを適用することによっても可能ですが、それには余分な要素とルールセットが必要です。
<h4 id="HTML">HTML</h4>
@@ -76,9 +74,9 @@ div {
<h4 id="Result" name="Result">結果</h4>
-<p>{{EmbedLiveSample("Using_a_different_font_for_a_single_character", 500,104)}}</p>
+{{EmbedLiveSample("Using_a_different_font_for_a_single_character", 500,104)}}
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+## 仕様書
<table class="standard-table">
<thead>
@@ -99,18 +97,18 @@ div {
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("css.at-rules.font-face.unicode-range")}}</p>
+{{Compat("css.at-rules.font-face.unicode-range")}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
<ul>
- <li>{{cssxref("@font-face/font-display", "font-display")}}</li>
- <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
- <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
- <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
- <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
- <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
- <li>{{cssxref("font-feature-settings", "font-feature-settings")}}</li>
- <li>{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}</li>
- <li>{{cssxref("@font-face/src", "src")}}</li>
+- {{cssxref("@font-face/font-display", "font-display")}}
+- {{cssxref("@font-face/font-family", "font-family")}}
+- {{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")}}
</ul>