Version

GetGlyphRunMode Method

Gets the GlyphRunMode property. This property determines if and when GlyphRuns will be used instead of FormattedText in a
Syntax
'Declaration
 
Public Shared Function GetGlyphRunMode( _
   ByVal d As DependencyObject _
) As Nullable(Of SimpleTextGlyphRunMode)
public static Nullable<SimpleTextGlyphRunMode> GetGlyphRunMode( 
   DependencyObject d
)

Parameters

d
Remarks

Note: GlyphRuns are significantly faster than FormattedText. However, they don't support ligatures or TextOptions.TextFomrmattingMode of 'Display'. The inherited attached GlyphRunMode and properties are used to determine this behavior.

Regardless of these settings GlyphRuns will not be used if FlowDirection is 'RightToLeft' or the text contains characters that do not map to a glyph in the current font.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also