Version

UseOptimizedGlyphRun Method

Determines if GlyphRuns will be used instead of FormattedText for the specified text.
Syntax
'Declaration
 
Function UseOptimizedGlyphRun( _
   ByVal text As String, _
   ByVal element As FrameworkElement, _
   ByVal runProperties As TextRunProperties, _
   ByVal paragraphProperties As TextParagraphProperties _
) As Boolean

Parameters

text
The text to evaluate.
element
The source element
runProperties
The run properties which will be used.
paragraphProperties
The paragraph properties which will be used.

Return Value

True to use Glyphuns or false to use FormattedText.
Remarks

Note: GlyphRuns are significantly faster than FormattedText. However, they don't support ligatures.

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