FontNumeralAlignment 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 the numeral alignment for a Typography object.
public enum class FontNumeralAlignment
public enum FontNumeralAlignment
type FontNumeralAlignment =
Public Enum FontNumeralAlignment
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Normal | 0 | Default numeral alignment is used. |
Proportional | 1 | Proportional width alignment is used. |
Tabular | 2 | Tabular alignment is used. |
Examples
The following code example shows how to define proportional and tabular figures for the Miramonte font, using properties of the Typography object.
<TextBlock FontFamily="Miramonte">
<Run Typography.NumeralAlignment="Proportional">114,131</Run>
</TextBlock>
<TextBlock FontFamily="Miramonte">
<Run Typography.NumeralAlignment="Tabular">114,131</Run>
</TextBlock>
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 financial type 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.
Example of proportional and tabbed figures
Note
Most OpenType fonts expose only a subset of the total OpenType features available. If a specified font does not support a particular feature, the default glyphs are used instead.