diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-16 09:58:00 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-23 23:30:24 +0900 |
| commit | ec35860e99aebe90a636a33b40209894ccf6fb36 (patch) | |
| tree | a418dc6f7f348250e61e7a36499dc6aad9926b34 /files/ja/web/css/@font-face/font-style/index.html | |
| parent | dec4fdef53365fde289fe07c7c35adfd0b7379e1 (diff) | |
| download | translated-content-ec35860e99aebe90a636a33b40209894ccf6fb36.tar.gz translated-content-ec35860e99aebe90a636a33b40209894ccf6fb36.tar.bz2 translated-content-ec35860e99aebe90a636a33b40209894ccf6fb36.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.html | 117 |
1 files changed, 0 insertions, 117 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 deleted file mode 100644 index d688077108..0000000000 --- a/files/ja/web/css/@font-face/font-style/index.html +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: font-style -slug: Web/CSS/@font-face/font-style -tags: - - '@font-face' - - アットルール記述子 - - CSS - - CSS Descriptor - - CSS Fonts - - リファレンス -translation_of: Web/CSS/@font-face/font-style ---- -{{CSSRef}} - -<strong>`font-style`</strong> は CSS の記述子で、 {{cssxref("@font-face")}} 規則の中で指定されたフォントのフォントスタイルを指定することができます。 - -特定のフォントファミリについて、同じフォントファミリの異なるスタイルに対応する様々なフォントフェイスをダウンロードできるようにすることができ、 `font-style` 記述子を使用してフォントフェイスのスタイルを正確に指定することができます。 CSS 記述子の値は対応する font プロパティと同じです。 - -## 構文 - -<pre class="brush: css notranslate">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 フォントファミリを指定すると、基本の形として、以下の結果が得られます。 - -<pre class="brush: css notranslate">@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;"> - -このテキストのイタリック版は、スタイルなしの版と同じ字形を使用しますが、人工的に数度だけ傾けてあります。 - -<img alt="人工的に傾けた garamond" src="https://mdn.mozillademos.org/files/12267/garamondartificialstyle.JPG" style="height: 101px; width: 276px;"> - -一方で、フォントファミリに真にイタリックである版がある場合、 `src` 記述子を含めてそのフォントがイタリックだと指定することで、フォントがイタリックになることが明確になります。本当のイタリックは異なる字形を用い、少し右上に傾いており、いくらか固有の特徴を持ち、一般に丸みを帯びており、筆記体に似た品質です。これらのフォントはフォントのデザイナーによって特別に作成されたものであり、人工的に傾けたものでは<strong>ありません</strong>。 - -<pre class="brush: css notranslate">@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;"> - -## 仕様書 - -<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")}} - -## 関連情報 - -<ul> -- {{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> |
