FontStretches 類別

定義

提供一組靜態的預先定義 FontStretch 值。

public ref class FontStretches abstract sealed
public static class FontStretches
type FontStretches = class
Public Class FontStretches
繼承
FontStretches

備註

字型延展描述字型表單從一般外觀比例延伸的程度,這是為字型中字元指定的原始寬度與高度比例。

這些 FontStretches 值會對應至 usWidthClass OpenType 規格中的定義。 表示 usWidthClass 介於 1 到 9 之間的整數值。 較低的數值表示較窄的寬度;較高的值表示寬度較寬。

字型延展 usWidthClass 正常百分比
UltraCondensed 1 50%
ExtraCondensed 2 62.5%
Condensed 3 75%
SemiCondensed 4 87.5%
Normal 5 100%
Medium 5 100%
SemiExpanded 6 112.5%
Expanded 7 125%
ExtraExpanded 8 150%
UltraExpanded 9 200%

如需 OpenType 值的詳細資訊,請參閱 OpenType usWidthClass 規格的 usWidthClass 一節。

屬性

Condensed

指定壓縮的 FontStretch

Expanded

指定擴充的 FontStretch

ExtraCondensed

指定額外壓縮的 FontStretch

ExtraExpanded

指定額外擴充的 FontStretch

Medium

指定中 FontStretch

Normal

指定一般 FontStretch

SemiCondensed

指定半壓縮的 FontStretch

SemiExpanded

指定半展開的 FontStretch

UltraCondensed

指定極端壓縮的 FontStretch

UltraExpanded

指定極端展開的 FontStretch

適用於