FontStretches 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一組靜態的預設 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 usWidthClass 值的資訊,請參閱 OpenType 規範中的 usWidthClass 章節。
屬性
| 名稱 | Description |
|---|---|
| Condensed |
指定一個濃縮的 FontStretch。 |
| Expanded |
指定一個擴展的 FontStretch。 |
| ExtraCondensed |
指定一個超濃縮的 FontStretch。 |
| ExtraExpanded |
指定一個額外擴展的 FontStretch。 |
| Medium |
指定一種媒介 FontStretch。 |
| Normal |
指定一個法範 FontStretch。 |
| SemiCondensed |
指定一個半濃縮的 FontStretch。 |
| SemiExpanded |
指定一個半展開的 FontStretch。 |
| UltraCondensed |
指定一個超濃縮的 FontStretch。 |
| UltraExpanded |
指定超擴展的 FontStretch。 |