TextRunTypographyProperties.NumeralStyle Property

Definition

Gets a value that indicates the set of glyphs that are used to render numeric alternate font forms.

public abstract System.Windows.FontNumeralStyle NumeralStyle { get; }

Property Value

One of the FontNumeralStyle values. The default is Normal.

Remarks

OpenType fonts support an old-style numeral format. This format is useful for displaying numerals in styles that are no longer standard. The following text displays an 18th-century date in standard and old-style numeral formats for the Palatino Linotype font.

Text using OpenType old style numerals
Example of standard and old-style numerals

The following text displays standard numerals for the Palatino Linotype font, followed by old-style numerals.

Text using OpenType old style numeral sets
Example of standard and old-style numeral sets

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also