Share via


XRTextHintingMode (Compact 2013)

3/28/2014

This enumeration specifies whether text rendering is optimized for readability or not.

Syntax

enum XRTextHintingMode
{
    XRTextHintingMode_Fixed=0,
    XRTextHintingMode_Animated=1,
};

Members

  • XRTextHintingMode_Fixed
    Default. Turns on text rendering optimizations. We do not recommend XRTextHintingMode_Fixed if you will be transforming or animating the text.
  • XRTextHintingMode_Animated
    Turns off text rendering optimizations.

Remarks

By default, XAML for Windows Embedded optimizes text for readability. Although this is usually desirable, it can greatly slow performance when you animate the scale or rotation of text. Changing size or rotation recalculates how the glyph is most legible at that font size and position. This recalculation is performed 60 times a second.

To improve performance when animating the rotation or scale of text, we recommend that you turn off this readability optimization by setting the XRTextHintingMode property to XRTextHintingMode_Animated and then setting it back to XRTextHintingMode_Fixed when the animation ends.

.NET Framework Equivalent

System.Windows.Media.TextHintingMode

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations