次の方法で共有


TextHintingMode Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Enumeration TextHintingMode
public enum TextHintingMode
<object property = "enumMemberName"/>

Members

Member name Description
Supported by Silverlight for Windows Phone Fixed The default text render mode.
Supported by Silverlight for Windows Phone Animated Turns off text rendering optimizations.

Remarks

By default, Silverlight 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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.