FontStretch Struktur
Definition
Beschreibt den Grad, um den eine Schriftart in Bezug auf das normale Verhältnis gestreckt wurde.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
- Vererbung
- Attribute
- Implementiert
Hinweise
Eine Schriftart Streckung beschreibt das Ausmaß, in dem ein Schriftart Formular vom normalen Seitenverhältnis gestreckt wird. Hierbei handelt es sich um die ursprüngliche Breite bis zum Höhen Verhältnis, die für die Symbole in der Schriftart festgelegt wird.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.
Die FontStretches Werte entsprechen der usWidthClass
Definition in der OpenTypeOpenType Spezifikation.The FontStretches values correspond to the usWidthClass
definition in the OpenTypeOpenType specification. Der usWidthClass
stellt einen ganzzahligen Wert zwischen 1 und 9-unteren Werten dar, die eine geringere Breite angeben. höhere Werte geben eine größere Breite an.The usWidthClass
represents an integer value between 1 and 9 - lower values indicate narrower widths; higher values indicate wider widths.
Schriftart StreckungFont stretch | usWidthClassusWidthClass | % der normalen% 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% |
Weitere Informationen zum OpenType usWidthClass
-Wert finden Sie im Abschnitt "" in der OpenType-Spezifikation.For more information on the OpenType usWidthClass
value, see the usWidthClass section of the OpenType specification.
Verwendung von XAML-AttributenXAML Attribute Usage
<object fontStretchesProperty="fontStretchesValue"/>
XAML-WerteXAML Values
fontStretchesValuefontStretchesValue
Ein FontStretches Wert, der als namens Zeichenfolge ausgedrückt wird, z. b. "komprimiert", "Normal" oder "Erweitert".A FontStretches value expressed as the name string, such as "Condensed", "Normal", or "Expanded".
Methoden
Compare(FontStretch, FontStretch) |
Vergleicht zwei Instanzen von FontStretch-Objekten.Compares two instances of FontStretch objects. |
Equals(FontStretch) |
Vergleicht ein FontStretch-Objekt mit dem aktuellen FontStretch-Objekt.Compares a FontStretch object with the current FontStretch object. |
Equals(Object) |
Vergleicht ein Object mit dem aktuellen FontStretch-Objekt.Compares a Object with the current FontStretch object. |
FromOpenTypeStretch(Int32) |
Erstellt eine neue Instanz von FontStretch, die dem OpenTypeOpenType-usStretchClass-Wert entspricht.Creates a new instance of FontStretch that corresponds to the OpenTypeOpenType usStretchClass value. |
GetHashCode() |
Ruft den Hashcode für dieses Objekt ab.Retrieves the hash code for this object. |
ToOpenTypeStretch() |
Gibt einen Wert zurück, der die OpenTypeOpenType |
ToString() |
Erstellt eine String-Darstellung des aktuellen FontStretch-Objekts auf der Grundlage der aktuellen Kultur.Creates a String representation of the current FontStretch object based on the current culture. |
Operatoren
Equality(FontStretch, FontStretch) |
Prüft zwei Instanzen von FontStretch auf Gleichheit.Compares two instances of FontStretch for equality. |
GreaterThan(FontStretch, FontStretch) |
Wertet zwei Instanzen von FontStretch aus, um zu bestimmen, ob eine Instanz größer als die andere ist.Evaluates two instances of FontStretch to determine if one instance is greater than the other. |
GreaterThanOrEqual(FontStretch, FontStretch) |
Wertet zwei Instanzen von FontStretch aus, um zu bestimmen, ob eine Instanz größer oder gleich der anderen ist.Evaluates two instances of FontStretch to determine whether one instance is greater than or equal to the other. |
Inequality(FontStretch, FontStretch) |
Wertet zwei Instanzen von FontStretch aus, um zu bestimmen, ob sie ungleich sind.Evaluates two instances of FontStretch to determine inequality. |
LessThan(FontStretch, FontStretch) |
Wertet zwei Instanzen von FontStretch aus, um zu bestimmen, ob eine Instanz kleiner als die andere ist.Evaluates two instances of FontStretch to determine whether one instance is less than the other. |
LessThanOrEqual(FontStretch, FontStretch) |
Wertet zwei Instanzen von FontStretch aus, um zu bestimmen, ob eine Instanz kleiner oder gleich der anderen ist.Evaluates two instances of FontStretch to determine whether one instance is less than or equal to the other. |
Explizite Schnittstellenimplementierungen
IFormattable.ToString(String, IFormatProvider) |
Eine Beschreibung dieses Elements finden Sie unter ToString(String, IFormatProvider).For a description of this member, see ToString(String, IFormatProvider). |