Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Typography.StandardLigatures Property

 

Gets or sets a value that indicates whether standard ligatures are enabled.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool StandardLigatures { get; set; }

Property Value

Type: System.Boolean

true if standard ligatures are enabled; otherwise, false. The default value is true.

This property gets or sets a value on the object that owns a Typography property, which is the only way to access a Typography class instance. In addition, this property supports an attached property usage so that it can be set on text-containing objects in XAML.

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

Text using OpenType standard ligatures

Example of standard set of ligatures

The following code example shows how to define standard ligature glyphs for the Pericles font, using the StandardLigatures property.

By default, OpenTypes 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 pair of characters for each standard ligature touch each other.

Text using OpenType standard ligatures

Example of standard ligatures enabled by default

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.

Text using disabled OpenType standard ligatures

Example of disabled standard ligatures

The following code example shows how to disable standard ligature glyphs for the Palatino Linotype font, using the StandardLigatures property.

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

<object Typography.StandardLigatures="bool"/>

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft