Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontFraction Enumeration

 

Describes the fraction style for a Typography object.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public enum FontFraction

Member nameDescription
Normal

Default style is used.

Slashed

Slashed fraction style is used.

Stacked

Stacked fraction style is used.

OpenType fonts support styles for fractions, including slashed and stacked. The following text displays fraction styles for the Palatino Linotype font.

Text using OpenType slashed and stacked fractions

Example of slashed and stacked fraction styles

System_CAPS_noteNote

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.

The following code example shows how to define fraction styles for the Palatino Linotype font, using properties of the Typography object.

<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Slashed">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8
</Paragraph>
<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Stacked">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8
</Paragraph>

.NET Framework
Available since 3.0
Silverlight
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Return to top
Show:
© 2016 Microsoft