Strange font

10 posts, 0 answers
  1. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 03 Jul 2013 Link to this post

    I have a GridView with the Font set to Segoe UI; 9pt
    The GridView is used as a add-in in another Winforms application (Microsoft Dynamics NAV).
    But the font display a bit strange. See the attached screen capture.
    As you can see the font of the other standard controls of that application display just fine.
    And when I have the GridView in a separate winforms sample application, then it's also ok.
    Any hints on that?
  2. George
    Admin
    George avatar
    500 posts

    Posted 05 Jul 2013 Link to this post

    Hello Jaap,

    Thank you for contacting us.

    Unfortunately I was not able to see any difference between the normal font and the font displayed in your picture. I would like to kindly ask you to either provide me with a project which I can run locally or at least two high quality images (preferably in .png format) showing both fonts separated.

    Looking forward to your reply.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 05 Jul 2013 Link to this post

    Hoi George,

    I have added two new images.
    In Capture2.png I have selected the 2 words "Description" from outside and inside the grid and placed them beside each other.
    The lower one is from the grid.
    It appears (if you zoom in) that the top word has some smoothing.

    Regards, Jaap
  5. George
    Admin
    George avatar
    500 posts

    Posted 05 Jul 2013 Link to this post

    Hi Jaap,

    Thank you for writing back.

    Unfortunately I was not able to reproduce the issue you described, I tried all kinds of text filters and settings. I am attaching my solution to show you what I have tried. Also I would like to kindly ask you to modify it on a way which will give me the opportunity to reproduce the issue on my side.

    Looking forward to your reply.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 05 Jul 2013 Link to this post

    That's exactly my problem: I can not reproduce it in a standalone winforms application.
    I am using the gridview in an add-in for another winforms application (which is from another company).
    I have no idea why in that case the font is not smoothend (or anti-aliased, what's the correct term?).
    I don't expect that you can reproduce and solve it in this case, but was hoping you could give me some hints.
    But apparently this is not the case.

    Regards, Jaap
  7. George
    Admin
    George avatar
    500 posts

    Posted 05 Jul 2013 Link to this post

    Hello Jaap,

    Thank you for writing back.

    In this case I can recommend you to use our RadControlSpy, you can read more about it here ControlSpy. With it you can spy RadElement (for example cell in the grid) and adjust its properties. Here are a few properties that may be connected with your problem.
    1. SmootingMode - enables\disables smoothing mode
    2. TextRenderingHint - change the way the text is rendered
    3. UseCompatibleTextRendering - switch between GDI/GDI+
    I suggest you to try different ones and see what's the outcome. I am also really interested if your issue can be reproduced and if it's related to our controls.

    I am looking forward to your reply.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 08 Jul 2013 Link to this post

    Hi George,

    Changing SmoothingMode and UseCompatibleTextRendering didn't have any effect.
    But setting TextRenderingHint to ClearTypeGridFit made it much better look-a-like the system default, although the rendering is not 100% exactly the same.
    Strange that SystemDefault is not working correctly in my specific case.

    I found also that, when a cell goes in edit mode, the text in the editor is rendered as expected.

    Regards, Jaap
  9. George
    Admin
    George avatar
    500 posts

    Posted 11 Jul 2013 Link to this post

    Hi Jaap,

    Thank you for replying.

    Your issue may be related to the window's default font settings. We are using the default libraries for text rendering which means we can not control the way text is rendered. You can read more about similar issue on this address GDI+ and ClearType : inconsistent behavior.

    I hope this helps.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. Grant
    Grant avatar
    9 posts
    Member since:
    Apr 2015

    Posted 26 Aug 2015 Link to this post

    It looks like this was never resolved, and I may have stumbled on an answer. I was having a similar problem, with TrueType font not being used in a control, but when I recreated the same control in a test app it worked fine.

    My control was a RadDropDownList, but I had almost the same issue. I had to explicitly set UseCompatibleTextRendering to false.
  11. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 28 Aug 2015 Link to this post

    Hello Grant,

    Thank you for writing.

    Without a clear way for the issue reproducing, we cannot properly investigate this case. In addition, we do not have any other reports for such issues in our Feedback Portal. So if you manage to find a clear way to reproduce this, please contact us and we will investigate this further.

    Thank you in advance for your patience and cooperation. 

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready