Death to ClearType

4 posts, 0 answers
  1. Brian Chavez
    Brian Chavez avatar
    23 posts
    Member since:
    Sep 2012

    Posted 13 Jul 2009 Link to this post

    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
  2. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 13 Jul 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brian Chavez
    Brian Chavez avatar
    23 posts
    Member since:
    Sep 2012

    Posted 13 Jul 2009 Link to this post

    Ok. So, how do I programatically TURN OFF ClearType in the Theme?

    I don't want ClearType used in my application.
  5. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 13 Jul 2009 Link to this post

    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.
Back to Top