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

Strange font

9 Answers 153 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jaap
Top achievements
Rank 2
Jaap asked on 03 Jul 2013, 12:48 PM
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?

9 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 05 Jul 2013, 12:24 PM
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 >>
0
Jaap
Top achievements
Rank 2
answered on 05 Jul 2013, 12:47 PM
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
0
George
Telerik team
answered on 05 Jul 2013, 02:14 PM
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 >>
0
Jaap
Top achievements
Rank 2
answered on 05 Jul 2013, 02:25 PM
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
0
George
Telerik team
answered on 05 Jul 2013, 03:03 PM
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 >>
0
Jaap
Top achievements
Rank 2
answered on 08 Jul 2013, 01:54 PM
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
0
George
Telerik team
answered on 11 Jul 2013, 08:59 AM
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 >>
0
Grant
Top achievements
Rank 1
answered on 26 Aug 2015, 05:27 PM
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.
0
Dimitar
Telerik team
answered on 28 Aug 2015, 12:46 PM
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
Tags
GridView
Asked by
Jaap
Top achievements
Rank 2
Answers by
George
Telerik team
Jaap
Top achievements
Rank 2
Grant
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or