11---
22title : OpenType フォント特性の手引き
3+ short-title : OpenType の特性
34slug : Web/CSS/Guides/Fonts/OpenType_fonts
4- original_slug : Web/CSS/CSS_fonts/OpenType_fonts_guide
55l10n :
6- sourceCommit : ad6eb6b52b4b3082397e8e011bd59a6d88a8f5f3
6+ sourceCommit : 85fccefc8066bd49af4ddafc12c77f35265c7e2d
77---
88
99フォント特性 (font features) または異体字 (variants) とは、OpenType フォントに含まれるさまざまな字形や文字スタイルのことです。これらには、合字 ('fi' や 'ffl' などの文字を組み合わせた特別な字形)、カーニング (特定の文字の組み合わせの間隔の調整)、分数、数字のスタイルなどがあります。これらはすべて OpenType 機能と呼ばれ、特定のプロパティや低レベルの制御プロパティ - {{cssxref("font-feature-settings")}} を通じてウェブ上で使用できるようになっています。この記事では、CSS で OpenType フォント特性を使用するために必要なすべての知識を提供します。
7272``` css hidden live-sample___font-kerning-example
7373@font-face {
7474 font-family : " Plex Serif" ;
75- font-weight : 400 ;
75+ font-weight : normal ;
7676 font-style : normal ;
7777 font-stretch : normal ;
7878 src :
@@ -305,10 +305,6 @@ font-variant-alternates: styleset(alt-g);
305305
306306小文字の 'a' が標準形に戻り、小文字の 'g' が代わりに変化するのが分かるでしょう。
307307
308- #### 代替字形の詳細
309-
310- - < https://www.w3.org/TR/css-fonts-4/#propdef-font-variant-alternates >
311-
312308### 合字
313309
314310関連するプロパティ: {{cssxref("font-variant-ligatures")}}
@@ -321,7 +317,7 @@ font-variant-alternates: styleset(alt-g);
321317<fieldset >
322318 <legend ><code >font-variant-ligatures</code > プロパティを使用</legend >
323319 <div class =" container container1" >
324- <p >Puffy Perfect -^ < - > </p >
320+ <p >Puffy Perfect -^ & lt ; - & gt ; </p >
325321 </div >
326322 <input type =" checkbox" name =" checkbox1" id =" checkbox1" value =" on" checked />
327323 <label for =" checkbox1" >合字を有効にする</label >
@@ -330,7 +326,7 @@ font-variant-alternates: styleset(alt-g);
330326<fieldset >
331327 <legend ><code >font-feature-settings</code > プロパティを使用</legend >
332328 <div class =" container container2" >
333- <p >Puffy Perfect -^ < - > </p >
329+ <p >Puffy Perfect -^ & lt ; - & gt ; </p >
334330 </div >
335331 <input type =" checkbox" name =" checkbox2" id =" checkbox2" value =" on" checked />
336332 <label for =" checkbox2" >合字を有効にする</label >
@@ -340,7 +336,7 @@ font-variant-alternates: styleset(alt-g);
340336``` css hidden live-sample___font-variant-ligatures-example
341337@font-face {
342338 font-family : " Playfair Display" ;
343- font-weight : 400 ;
339+ font-weight : normal ;
344340 font-style : normal ;
345341 font-stretch : normal ;
346342 src :
@@ -446,7 +442,7 @@ checkBox2.addEventListener("change", () => {
446442``` css hidden live-sample___font-variant-position-example
447443@font-face {
448444 font-family : " Playfair Display" ;
449- font-weight : 400 ;
445+ font-weight : normal ;
450446 font-style : normal ;
451447 font-stretch : normal ;
452448 src :
@@ -564,7 +560,7 @@ OpenType 特性の一般的な使用例の 1 つに、適切なスモールキ
564560``` css hidden live-sample___font-variant-caps-example
565561@font-face {
566562 font-family : " Playfair Display" ;
567- font-weight : 400 ;
563+ font-weight : normal ;
568564 font-style : normal ;
569565 font-stretch : normal ;
570566 src :
@@ -698,7 +694,7 @@ checkBox2.addEventListener("change", () => {
698694``` css hidden live-sample___font-variant-numeric-example
699695@font-face {
700696 font-family : " Source Serif" ;
701- font-weight : 400 ;
697+ font-weight : normal ;
702698 font-style : normal ;
703699 font-stretch : normal ;
704700 src :
@@ -813,7 +809,7 @@ checkBox2.addEventListener("change", () => {
813809``` css hidden live-sample___font-variant-numeric-frac-example
814810@font-face {
815811 font-family : " Source Serif" ;
816- font-weight : 400 ;
812+ font-weight : normal ;
817813 font-style : normal ;
818814 font-stretch : normal ;
819815 src :
@@ -1032,7 +1028,7 @@ checkBox2.addEventListener("change", () => {
10321028``` css hidden live-sample___font-variant-example
10331029@font-face {
10341030 font-family : " Playfair Display" ;
1035- font-weight : 400 ;
1031+ font-weight : normal ;
10361032 font-style : normal ;
10371033 font-stretch : normal ;
10381034 src :
@@ -1174,10 +1170,10 @@ checkBox2.addEventListener("change", () => {
11741170
11751171- [ Font Feature Properties in CSS Fonts Module Level 3] ( https://drafts.csswg.org/css-fonts-3/#font-rend-props )
11761172 - 〔日本語訳〕[ CSS フォントモジュール第 3 水準におけるフォント特性プロパティ] ( https://triple-underscore.github.io/css-fonts-ja.html#font-rend-desc )
1177- - [ font-variant-alternatives in CSS Fonts Module Level 4] ( https://www.w3 .org/TR /css-fonts-4/#propdef-font-variant-alternates )
1173+ - [ font-variant-alternatives in CSS Fonts Module Level 4] ( https://drafts.csswg .org/css-fonts-4/#propdef-font-variant-alternates )
11781174 - 〔日本語訳〕[ CSS フォントモジュール第 4 水準における font-variant-alternatives] ( https://triple-underscore.github.io/css-fonts4-ja.html#propdef-font-variant-alternates )
11791175
11801176## その他の文献
11811177
1182- - [ OpenType 機能の使用] ( https://helpx.adobe.com/jp/fonts/using/use-open-type-features.html ) - アドビ
1183- - [ CSS での OpenType 機能の構文] ( https://helpx.adobe.com/jp/fonts/using/open-type-syntax.html ) - アドビ
1178+ - [ OpenType 機能の使用] ( https://helpx.adobe.com/jp/fonts/using/use-open-type-features.html ) - Tim Brown, Head of Typography, Adobe
1179+ - [ アドビによる CSS での OpenType 機能の構文] ( https://helpx.adobe.com/jp/fonts/using/open-type-syntax.html )
0 commit comments