Typography.StylisticAlternates Property
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
/** @property */ public int get_StylisticAlternates () /** @property */ public void set_StylisticAlternates (int value)
public function get StylisticAlternates () : int public function set StylisticAlternates (value : int)
You cannot use this property in XAML.
Property Value
The index of the stylistic alternates form. The default value is 0 (zero).Alternates are glyphs that can be substituted for a standard glyph. OpenType fonts, such as the Pericles font used in the following examples, contain alternate glyphs that you can use to create different appearances for text. The following text displays standard glyphs for the Pericles font.
Example of standard set of glyphs
The Pericles OpenType font contains additional glyphs that provide stylistic alternates to the standard set of glyphs. The following text displays stylistic alternate glyphs.
Example of stylistic alternate glyphs
The following code example shows how to define stylistic alternate glyphs for the Pericles font, using the StylisticAlternates property.
<Paragraph FontFamily="Pericles"> <Run Typography.StylisticAlternates="1">A</Run>NCIENT GR<Run Typography.StylisticAlternates="1">EE</Run>K MYTH<Run Typography.StylisticAlternates="1">O</Run>LOGY </Paragraph>
The following text displays several other stylistic alternate glyphs for the Pericles font.
Example of other stylistic alternate glyphs
The following code example shows how to define these other stylistic alternate glyphs.
<Paragraph FontFamily="Pericles"> <Run Typography.StylisticAlternates="1">A</Run> <Run Typography.StylisticAlternates="2">A</Run> <Run Typography.StylisticAlternates="3">A</Run> <Run Typography.StylisticAlternates="1">C</Run> <Run Typography.StylisticAlternates="1">E</Run> <Run Typography.StylisticAlternates="1">G</Run> <Run Typography.StylisticAlternates="1">O</Run> <Run Typography.StylisticAlternates="1">Q</Run> <Run Typography.StylisticAlternates="1">R</Run> <Run Typography.StylisticAlternates="2">R</Run> <Run Typography.StylisticAlternates="1">S</Run> <Run Typography.StylisticAlternates="1">Y</Run> </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.