Breyta

Deila með


TextRunTypographyProperties.NumeralAlignment Property

Definition

Gets the alignment of widths when using numerals.

public:
 abstract property System::Windows::FontNumeralAlignment NumeralAlignment { System::Windows::FontNumeralAlignment get(); };
public abstract System.Windows.FontNumeralAlignment NumeralAlignment { get; }
member this.NumeralAlignment : System.Windows.FontNumeralAlignment
Public MustOverride ReadOnly Property NumeralAlignment As FontNumeralAlignment

Property Value

One of the FontNumeralAlignment values. The default is Normal.

Remarks

OpenType fonts support a proportional and tabular figure feature to control the alignment of widths when using numerals. Proportional figures treat each numeral as having a different width - "1" is narrower than "5". Tabular figures are treated as equal-width numerals so that they align vertically, which increases the readability of numerical information.

The following text displays two proportional figures in the first column using the Miramonte font. Note the difference in width between the numerals "5" and "1". The second column shows the same two numeric values with the widths adjusted by using the tabular figure feature.

Text using OpenType proportional & tabular figures
Example of proportional and tabbed figures

Applies to

See also