FontStretch 構造体
定義
フォントの標準の縦横比に対して、フォントがどのくらい伸縮されているかを表します。Describes the degree to which a font has been stretched compared to the normal aspect ratio of that font.
public value class FontStretch : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontStretchConverter))]
[System.Windows.Localizability(System.Windows.LocalizationCategory.None)]
public struct FontStretch : IFormattable
type FontStretch = struct
interface IFormattable
Public Structure FontStretch
Implements IFormattable
- 継承
- 属性
- 実装
注釈
フォントの伸縮は、フォントフォームが通常の縦横比からどの程度拡大されるかを記述します。これは、フォントのグリフに対して指定されている元の幅と高さの比率です。A font stretch describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width to height ratio specified for the glyphs in the font.
値FontStretchesは、 OpenTypeOpenType仕様のusWidthClass
定義に対応しています。The FontStretches values correspond to the usWidthClass
definition in the OpenTypeOpenType specification. はusWidthClass
、1 ~ 9 の整数値を表します。小さい値は幅が狭いことを示します。値が大きいほど幅が広くなります。The usWidthClass
represents an integer value between 1 and 9 - lower values indicate narrower widths; higher values indicate wider widths.
フォントの伸縮Font stretch | usWidthClassusWidthClass | 通常の%% of normal |
---|---|---|
UltraCondensed | 11 | 50.0%50.0% |
ExtraCondensed | 22 | 62.5%62.5% |
Condensed | 33 | 75.0%75.0% |
SemiCondensed | 44 | 87.5%87.5% |
Medium | 55 | 100.0%100.0% |
SemiExpanded | 66 | 112.5%112.5% |
Expanded | 77 | 125.0%125.0% |
ExtraExpanded | 88 | 150.0%150.0% |
UltraExpanded | 99 | 200.0%200.0% |
Opentype usWidthClass
値の詳細については、opentype 仕様のus幅クラスに関するセクションを参照してください。For more information on the OpenType usWidthClass
value, see the usWidthClass section of the OpenType specification.
XAML 属性の使用方法XAML Attribute Usage
<object fontStretchesProperty="fontStretchesValue"/>
XAML 値XAML Values
fontStretchesValuefontStretchesValue
"凝縮"、"Normal"、"ems" など、名前の文字列として表現される値。FontStretchesA FontStretches value expressed as the name string, such as "Condensed", "Normal", or "Expanded".
メソッド
Compare(FontStretch, FontStretch) |
FontStretch オブジェクトの 2 つのインスタンスを比較します。Compares two instances of FontStretch objects. |
Equals(FontStretch) |
FontStretch オブジェクトと現在の FontStretch オブジェクトを比較します。Compares a FontStretch object with the current FontStretch object. |
Equals(Object) |
Object と現在の FontStretch オブジェクトを比較します。Compares a Object with the current FontStretch object. |
FromOpenTypeStretch(Int32) |
OpenTypeOpenType usStretchClass 値に対応する FontStretch の新しいインスタンスを作成します。Creates a new instance of FontStretch that corresponds to the OpenTypeOpenType usStretchClass value. |
GetHashCode() |
このオブジェクトのハッシュ コードを取得します。Retrieves the hash code for this object. |
ToOpenTypeStretch() |
この FontStretch オブジェクトの OpenTypeOpenType |
ToString() |
現在のカルチャに基づいて、現在の String オブジェクトの FontStretch 表現を作成します。Creates a String representation of the current FontStretch object based on the current culture. |
演算子
Equality(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを比較し、等しいかどうかを確認します。Compares two instances of FontStretch for equality. |
GreaterThan(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを評価して、一方のインスタンスがもう一方のインスタンスより大きいかどうかを確認します。Evaluates two instances of FontStretch to determine if one instance is greater than the other. |
GreaterThanOrEqual(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを評価して、一方のインスタンスがもう一方のインスタンス以上かどうかを確認します。Evaluates two instances of FontStretch to determine whether one instance is greater than or equal to the other. |
Inequality(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを評価して、両者が等しくないかどうかを確認します。Evaluates two instances of FontStretch to determine inequality. |
LessThan(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを評価して、一方のインスタンスがもう一方のインスタンスより小さいかどうかを確認します。Evaluates two instances of FontStretch to determine whether one instance is less than the other. |
LessThanOrEqual(FontStretch, FontStretch) |
FontStretch の 2 つのインスタンスを評価して、一方のインスタンスがもう一方のインスタンス以下かどうかを確認します。Evaluates two instances of FontStretch to determine whether one instance is less than or equal to the other. |
明示的なインターフェイスの実装
IFormattable.ToString(String, IFormatProvider) |
このメンバーの詳細については、「ToString(String, IFormatProvider)」をご覧ください。For a description of this member, see ToString(String, IFormatProvider). |