TextRunTypographyProperties.StandardLigatures Property

Definition

Gets a value that indicates whether standard ligatures are enabled.

public abstract bool StandardLigatures { get; }

Property Value

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

Remarks

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

Text using OpenType standard ligatures
Example of a standard set of 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.

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

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

Applies to

Produit Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also