FontFraction Enumeration
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
OpenType fonts support styles for fractions, including slashed and stacked. The following text displays fraction styles for the Palatino Linotype font.
Example of slashed and stacked fraction styles
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. |
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>
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: