juanMH
2017-12-05T17:08:40Z
Hello, i have an issue with readability on the grid

I'm using font "Segoe UI" point size 8, with some text the characters seem to be placed too close to each other, using less space than other application that also use the same font and size.

This causes the text to be hard to read in some cases.

Attached is an image of the problem. My Grid.Net results are above, and the exact same text is displayed below as Outlook draws it. You can see that the Grid.net control uses less space to print the same text

Is there a way to change how much space is used between characters when drawing the text on the screen?

FontSpacing.png

Click to View Image73 View(s)

Igor/10Tec
2017-12-06T15:19:08Z
This is not a bug of iGrid. We use the standard .NET Graphics.DrawString  method to output cell texts on the screen and on paper in our PrintManager add-on, and this is the way this method works. In some cases you can even see that the char spacing in cells changes while you are resizing a column, but this is how GDI+ draws characters.

We are working on a new major update of iGrid.NET that will provide you with the TextRenderingHint property to specify the anti-alias mode for cell texts. This property will accept a value from the .NET TextRenderinHint Enumeration  to specify how iGrid will draw the text. You will be able to use one of the available GDI+ anti-alias modes in iGrid, which will give you a better and more predictable look of characters.

In the current version you can use custom drawing to draw cell texts yourself if you do not like what GDI+ does. This can be done in the CustomDrawCellForeground event of iGrid.