Export (0) Print
Expand All

Typography.ContextualSwashes Property

Gets or sets a value that specifies the index of a contextual swashes form.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

'Declaration
Public Property ContextualSwashes As Integer
'Usage
Dim instance As Typography
Dim value As Integer

value = instance.ContextualSwashes

instance.ContextualSwashes = value
/** @property */
public int get_ContextualSwashes ()

/** @property */
public void set_ContextualSwashes (int value)

public function get ContextualSwashes () : int

public function set ContextualSwashes (value : int)

You cannot use this property in XAML.

Property Value

The index of the standard swashes form. The default value is 0 (zero).

Certain combinations of swash glyphs can cause an unattractive appearance, such as overlapping descenders on adjacent letters. Using a contextual swash allows you to use a substitute swash glyph that produces a better appearance. The following text shows the same word before and after a contextual swash is applied.

Example of a contextual swash


Text using OpenType contextual swashes

The following code example shows how to define a contextual swash for the Pescadero font, using the ContextualSwashes property.

<Paragraph FontFamily="Pescadero" Typography.StandardSwashes="1">
  Lyon <Run Typography.ContextualSwashes="1">L</Run>yon
</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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft