Version

SetGlyphRunTextEvaluator Method

Sets the GlyphRunTextEvaluator property. This property determines if and when GlyphRuns will be used instead of FormattedText in a
Syntax
'Declaration
 
Public Shared Sub SetGlyphRunTextEvaluator( _
   ByVal d As DependencyObject, _
   ByVal value As IGlyphRunTextEvaluator _
) 
public static void SetGlyphRunTextEvaluator( 
   DependencyObject d,
   IGlyphRunTextEvaluator value
)

Parameters

d
value
Remarks

Note: GlyphRuns are significantly faster than FormattedText. However, they don't support ligatures or TextOptions.TextFomrmattingMode of 'Display'. The inherited attached and GlyphRunTextEvaluator 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