AD
Administrator
Syncfusion Team
September 22, 2003 06:43 AM UTC
Thank you for the sample.
I think this is a .NET Framework glitch.
Try this. Stack two labels on a form, making sure their right edges end at the same place. Then align the text in the labels to the right and bold one of the labels. I think you will see the same problem.
Since the Grid relies on relies on GDI+ to do its drawing, you get the same behavior in the grid. And the degree of the problem varies from font to font. It is not too bad with Tahoma (which MS uses for most of their samples).
So, your work-around seems reasonable to manage the problem for a particular font.
AD
Administrator
Syncfusion Team
September 22, 2003 04:12 PM UTC
Attached find also a small sample program that demonstrates this problem is related to GDI+ with labels in a form. Switching the font to Tahoma fixes the issue there.
Stefan