FontFraction Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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