You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
First of all, Thank you for the great work! I really love it!
Second, I found when comparing the control's text to the text in Excel 2010 it didn't look nearly as good (in the winform control)
I started working on how to fix it. I used git hub and obtained the sourcecode and made a few changes.
Third, the text after the changes looks a bit better , less jagged, more even thickness on fonts and consistency.
// below line added by M.Fletcher 12/10/16
g.TextRenderingHint = TextRenderingHint.AntiAlias;
the above 2 lines (comment and textrenderinghint) were added before any calls to GDI Graphics method DrawString(...)
Locations added to were:
Graphics.cs file
added
using System.Drawing.Text; // so that TextRenderingHint.AntiAlias is recognized in code
class/namespaces
unvell.ReoGrid.Winform.GDIGraphics
public void DrawText(...)
unvell.ReoGrid.Winform.GDIRenderer
public void DrawCellText(...)
Thanks for providing the code!
Fletch
Offline
Thanks for the suggestion to improvement text rendering! We will add a setting flag to enable this feature. Or you can submit a change to the source code.
Last edited by Jingwood (2016-12-10 15:34:22)
Offline