This is a migrated thread and some comments may be shown as answers.

Death to ClearType

3 Answers 101 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Brian Chavez
Top achievements
Rank 2
Brian Chavez asked on 13 Jul 2009, 06:08 AM
I hate ClearType.

How can I disable ClearType on ALL controls and themes in this Telerik control suite?

I have ClearType disabled on my system for a reason.

Thank you.

-Brian

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 13 Jul 2009, 11:26 AM
Hi Brian,

Currently there are some elements that receive their TextRenderingHint through a theme and thus overridding the system setting. We will try to address this issue (in Q2 2009 Service Pack 1) and our themes will not force explicit rendering hint but rather use the current System settings.

I would like to thank you for pointing this out. I have updated your Telerik points.

Greetings,
Georgi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Brian Chavez
Top achievements
Rank 2
answered on 13 Jul 2009, 11:33 AM
Ok. So, how do I programatically TURN OFF ClearType in the Theme?

I don't want ClearType used in my application.
0
Georgi
Telerik team
answered on 13 Jul 2009, 12:06 PM
Hi Brian,

You may use the Visual Style Builder to modify the current themes or create new ones. The property that controls ClearTyle is VisualElement.TextRenderingHint.

You may also specify explicit LocalValue that will override the setting that comes from the Theme. Something like:

foreach (RadElement element in this.radButton1.RootElement.ChildrenHierarchy)  
{  
    VisualElement visual = element as VisualElement;  
    if (visual != null)  
    {  
        visual.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault;  
    }  


Greetings,
Georgi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Themes and Visual Style Builder
Asked by
Brian Chavez
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Brian Chavez
Top achievements
Rank 2
Share this question
or