FontVariants Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a font variant value for the Typography.Variants attached property.
public enum class FontVariants
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class FontVariants
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum FontVariants
Public Enum FontVariants
<object property="enumMemberName"/>
- Inheritance
-
FontVariants
- Attributes
Fields
Name | Value | Description |
---|---|---|
Normal | 0 | Default font behavior. Font scaling and positioning is normal. |
Superscript | 1 | Replaces a default glyph with a superscript glyph. Superscript is commonly used for footnotes. |
Subscript | 2 | Replaces a default glyph with a subscript glyph. |
Ordinal | 3 | Replaces a default glyph with an ordinal glyph, or it might combine glyph substitution with positioning adjustments for proper placement. Ordinal forms are normally associated with numeric notation of an ordinal word, such as "1st" for "first". |
Inferior | 4 | Replaces a default glyph with an inferior glyph, or it might combine glyph substitution with positioning adjustments for proper placement. Inferior forms are typically used in chemical formulas or mathematical notation. |
Ruby | 5 | Replaces a default glyph with a smaller Japanese Kana glyph. This is used to clarify the meaning of Kanji, which might be unfamiliar to the reader. |
Remarks
This enumeration is used by the Typography.Variants attached property.
Some fonts might support a subset of variant values, or ignore the setting completely.
Some fonts might also algorithmically approximate a font form instead of supporting Typography.Variants.