aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/@font-face/font-style/index.html
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 /files/ja/web/css/@font-face/font-style/index.html
parentd3b272864e9272f74876494d4d63c889277f1418 (diff)
downloadtranslated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.tar.gz
translated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.tar.bz2
translated-content-dec4fdef53365fde289fe07c7c35adfd0b7379e1.zip
Web/CSS/@font-face 以下の記述子の記事を変換準備
Diffstat (limited to 'files/ja/web/css/@font-face/font-style/index.html')
-rw-r--r--files/ja/web/css/@font-face/font-style/index.html78
1 files changed, 37 insertions, 41 deletions
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>