This topic has not yet been rated - Rate this topic

TextRunTypographyProperties.StandardLigatures Property

Gets a value that indicates whether standard ligatures are enabled.

Namespace:  System.Windows.Media.TextFormatting
Assembly:  PresentationCore (in PresentationCore.dll)
public abstract bool StandardLigatures { get; }

Property Value

Type: System.Boolean
true if standard ligatures are enabled; otherwise, false. The default is true.

The following text displays standard ligature glyphs for the Pericles font.

Example of a standard set of ligatures

Text using OpenType standard ligatures

By default, OpenType fonts in WPF enable standard ligatures. For example, if you use the Palatino Linotype font, the standard ligatures "fi", "ff", and "fl" appear as a combined character glyph. Notice that the characters of each standard ligature touch each other.

Example of standard ligatures enabled by default

Text using OpenType standard ligatures

However, you can disable standard ligature features so that a standard ligature such as "ff" displays as two separate glyphs, rather than as a combined character glyph.

Example of disabled standard ligatures

Text using disabled OpenType standard ligatures

If the value of StandardLigatures is true and the selected font does not support standard ligatures, the default form of the letter is displayed.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ