aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-16 10:52:43 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-23 23:30:24 +0900
commit81ae574e4bb3ca036bf52fd3b39cae16a91408ef (patch)
tree850cc297d7d5875fc84610fd5f73535f2cec9008
parentd2ed58920685e2f853f514ca30947b7d9e96f75c (diff)
downloadtranslated-content-81ae574e4bb3ca036bf52fd3b39cae16a91408ef.tar.gz
translated-content-81ae574e4bb3ca036bf52fd3b39cae16a91408ef.tar.bz2
translated-content-81ae574e4bb3ca036bf52fd3b39cae16a91408ef.zip
2021/08/13 時点の英語版に同期
-rw-r--r--files/ja/web/css/@font-face/font-style/index.md79
1 files changed, 31 insertions, 48 deletions
diff --git a/files/ja/web/css/@font-face/font-style/index.md b/files/ja/web/css/@font-face/font-style/index.md
index d688077108..5f3b411b46 100644
--- a/files/ja/web/css/@font-face/font-style/index.md
+++ b/files/ja/web/css/@font-face/font-style/index.md
@@ -5,106 +5,90 @@ tags:
- '@font-face'
- アットルール記述子
- CSS
- - CSS Descriptor
- - CSS Fonts
+ - CSS 記述子
+ - CSS フォント
- リファレンス
+browser-compat: css.at-rules.font-face.font-style
translation_of: Web/CSS/@font-face/font-style
---
{{CSSRef}}
-<strong>`font-style`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で指定されたフォントのフォントスタイルを指定することができます。
+**`font-style`** は CSS の記述子で、 {{cssxref("@font-face")}} ルールの中で指定されたフォントのフォントスタイルを指定することができます。
-特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 `font-style` 記述子を使用してフォントフェイスのスタイルを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。
+特定のフォントファミリーについて、同じフォントファミリーの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 `font-style` 記述子を使用してフォントフェイスのスタイルを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。
## 構文
-<pre class="brush: css notranslate">font-style: normal;
+```css
+font-style: normal;
font-style: italic;
font-style: oblique;
font-style: oblique 30deg;
font-style: oblique 30deg 50deg;
-</pre>
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
- `normal`
- - : フォントファミリの通常の版を選択します。
+ - : フォントファミリーの通常の版を選択します。
- `italic`
- : フォントフェイスが通常のフォントのイタリック版であることを指定します。
- `oblique`
- : フォントフェイスが通常のフォントを機械的に傾けたものであることを指定します。
-
- `oblique` と角度
- : `oblique` として分類されたフォントを選択し、テキストの角度を追加で指定します。
- `oblique` と角度の範囲
- : `oblique` として分類されたフォントを選択し、テキストの角度の範囲を追加で指定します。なお、範囲は `font-style` が `oblique` であるときにだけ対応しています。 `font-style: normal` 又は `italic` の場合は、第二の値は許可されません。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
## 例
-<h3 id="Specifying_an_italic_font_style" name="Specifying_an_italic_font_style">イタリックフォントスタイルの指定</h3>
+### イタリックフォントスタイルの指定
-例として、 garamond フォントファミリを指定すると、基本の形として、以下の結果が得られます。
+例として、 garamond フォントファミリーを指定すると、基本の形として、以下の結果が得られます。
-<pre class="brush: css notranslate">@font-face {
+```css
+@font-face {
font-family: garamond;
src: url('garamond.ttf');
-}</pre>
+}
+```
-<img alt="スタイルなしの garamond" src="https://mdn.mozillademos.org/files/12265/garamondunstyled.JPG" style="height: 101px; width: 276px;">
+![スタイルのない Garamond](garamondunstyled.jpg)
このテキストのイタリック版は、スタイルなしの版と同じ字形を使用しますが、人工的に数度だけ傾けてあります。
-<img alt="人工的に傾けた garamond" src="https://mdn.mozillademos.org/files/12267/garamondartificialstyle.JPG" style="height: 101px; width: 276px;">
+![人工的に傾けた garamond](garamondartificialstyle.jpg)
-一方で、フォントファミリに真にイタリックである版がある場合、 `src` 記述子を含めてそのフォントがイタリックだと指定することで、フォントがイタリックになることが明確になります。本当のイタリックは異なる字形を用い、少し右上に傾いており、いくらか固有の特徴を持ち、一般に丸みを帯びており、筆記体に似た品質です。これらのフォントはフォントのデザイナーによって特別に作成されたものであり、人工的に傾けたものでは<strong>ありません</strong>。
+一方で、フォントファミリーに真にイタリックである版がある場合、 `src` 記述子を含めてそのフォントがイタリックだと指定することで、フォントがイタリックになることが明確になります。本当のイタリックは異なる字形を用い、少し右上に傾いており、いくらか固有の特徴を持ち、一般に丸みを帯びており、筆記体に似た品質です。これらのフォントはフォントのデザイナーによって特別に作成されたものであり、人工的に傾けたものでは**ありません**。
-<pre class="brush: css notranslate">@font-face {
+```css
+@font-face {
font-family: garamond;
src: url('garamond-italic.ttf');
font-style: italic;
-}</pre>
+}
+```
-<img alt="イタリックの garamond" src="https://mdn.mozillademos.org/files/12269/garamonditalic.JPG" style="height: 101px; width: 267px;">
+![イタリックの garamond](garamonditalic.jpg)
## 仕様書
-<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-prop-desc', 'font-style')}}</td>
- <td>{{Spec2('CSS4 Fonts')}}</td>
- <td>角度の値を付けた oblique キーワードを追加</td>
- </tr>
- <tr>
- <td>{{SpecName('CSS3 Fonts', '#font-prop-desc', 'font-style')}}</td>
- <td>{{Spec2('CSS3 Fonts')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-{{Compat("css.at-rules.font-face.font-style")}}
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
## 関連情報
-<ul>
- {{cssxref("@font-face/font-display", "font-display")}}
- {{cssxref("@font-face/font-family", "font-family")}}
- {{cssxref("@font-face/font-stretch", "font-stretch")}}
@@ -114,4 +98,3 @@ font-style: oblique 30deg 50deg;
- {{cssxref("@font-face/font-variation-settings", "font-variation-settings")}}
- {{cssxref("@font-face/src", "src")}}
- {{cssxref("@font-face/unicode-range", "unicode-range")}}
-</ul>