CSS3

プロパティ

font-stretch

  編集:2022.07.12 by T.A.

[Edge]○?→mdnmdn「可変フォント ガイド」

フォントの字幅調整。

名前 font-stretch
normal | <percentage[0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
初期値 normal
適用対象 すべての要素
継承 される
百分率 受容しない
算出値 指定値
アニメーション型 注釈文を見よ

以下のCSSが組み込んであります:

normal
100%
<percentage[0,∞]>
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
">漢字ABCabc012[\]</SPAN><BR>
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:30%;
">漢字ABCabc012[\]</SPAN><BR>
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:0%;
">漢字ABCabc012[\]</SPAN><BR>
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:50%;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。¶n%で変わらない

<SPAN style="font-size:40px;
 font-family:Test_Font;
 font-stretch:30%;
">漢字ABCabc012[\]</SPAN><BR>

ultra-condensed
50%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:ultra-condensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。¶?

extra-condensed
62.5%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:extra-condensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

condensed
75%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:condensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

<SPAN style="font-size:40px;
 font-family:Bahnschrift condensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。¶?

<SPAN style="font-size:40px;
 font-family:Bahnschrift regular;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。¶?

semi-condensed
87.5%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:semi-condensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

<SPAN style="font-size:40px;
 font-family:Bahnschrift semicondensed;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。¶?

semi-expanded
112.5%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:semi-expanded;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

expanded
125%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:expanded;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

extra-expanded
150%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:extra-expanded;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

ultra-expanded
200%
<SPAN style="font-size:40px;
 font-family:Bahnschrift;
 font-stretch:ultra-expanded;
">漢字ABCabc012[\]</SPAN><BR>
フォント「Bahnschrift」がインストールされている場合。

以下のCSSが組み込んであります:

<SPAN style="font-size:40px;
 font-family:Test_Font_Rei;
 font-stretch:condensed;
">漢字ABCabc012[\]</SPAN><BR>

<SPAN style="font-size:40px;
 font-family:Test_Font_Rei;
 font-stretch:semi-condensed;
">漢字ABCabc012[\]</SPAN><BR>

<SPAN style="font-size:40px;
 font-family:Test_Font_Rei;
 font-stretch:normal;
">漢字ABCabc012[\]</SPAN><BR>
@font-faceで定義すれば使えるようだ

関連

font-stretch記述子。


テスト
HTML:

ここに表示
¶[Edge]?
HTML:

ここに表示
スクリプト:


スクリプト:



表示内容:
表示内容: