This documentation is archived and is not being maintained.

Typography.StandardLigatures Property

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

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

Public Property StandardLigatures As Boolean
Dim instance As Typography
Dim value As Boolean

value = instance.StandardLigatures

instance.StandardLigatures = value
/** @property */
public boolean get_StandardLigatures ()

/** @property */
public void set_StandardLigatures (boolean value)

public function get StandardLigatures () : boolean

public function set StandardLigatures (value : boolean)

You cannot use this property in XAML.

Property Value

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

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

Example of standard set of ligatures

Text using OpenType standard ligatures

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

<Paragraph FontFamily="Pericles" Typography.StandardLigatures="True">
  <Run Typography.StylisticAlternates="1">FI</Run>
  <Run Typography.StylisticAlternates="1">FL</Run>
  <Run Typography.StylisticAlternates="1">TH</Run>
  <Run Typography.StylisticAlternates="1">TT</Run>
  <Run Typography.StylisticAlternates="1">TV</Run>
  <Run Typography.StylisticAlternates="1">TW</Run>
  <Run Typography.StylisticAlternates="1">TY</Run>
  <Run Typography.StylisticAlternates="1">VT</Run>
  <Run Typography.StylisticAlternates="1">WT</Run>
  <Run Typography.StylisticAlternates="1">YT</Run>

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.

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

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

<!-- Set standard ligatures to false in order to disable feature. -->
<Paragraph Typography.StandardLigatures="False" FontFamily="Palatino Linotype" FontSize="72">
  fi ff fl

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

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