ClearTypeHint API in WPF

ClearTypeHint API 

The property RenderOptions. ClearTypeHint allows developer to re-enable ClearType rendering on elements which have had ClearType disabled by an ancestor element.  ClearTypeHint has two values which are inherited by its children.

  • Auto:  This is the default behavior of WPF. If an app specifies that ClearType should be used, the framework will use ClearType on all text in the visual tree until an element which disables ClearType is encountered.

  • Enabled:   Re-enables ClearType rendering on an element which has had ClearType disabled by an ancestor element. Note that setting ClearTypeHint to “Enabeld”  makes it possible for that element or any of its children to use ClearType rendering.




Ebook Download
View all
Learn
View all