Expand Minimize

TextHintingMode Enumeration

July 28, 2014

Specifies whether text rendering is optimized for readability or for dynamic presentation.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public enum TextHintingMode
<objectproperty = "enumMemberName"/>

Member nameDescription
FixedThe default text render mode.
AnimatedTurns off text rendering optimizations.

By default, Windows Phone optimizes text for readability. Although this is usually desirable, it can have a large performance impact when you animate the scale or rotation of text. This is because changing size or rotation results in recalculating how the glyph is most legible at that font size and position – and an animation changes that size or position 60 times a second.

When animating the rotation or scale of text, you will likely get better performance by turning off this readability optimization by setting the TextOptions.TextHintingMode attached property to Animated and then setting it back to Fixed when the animation ends.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft