Page 1 of 1

TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Posted: Thu Oct 28, 2010 12:00 pm
by 16557452
In TeCanvas the following line appears to me to contain a bad choice of default value:

TeeFontAntiAlias:Byte=ANTIALIASED_QUALITY

For fonts that rely on clear type smoothing (e.g. Segoe UI, the MS C font family introduced with Office 2007) the resulting text looks dreadful. A much better choice would be DEFAULT_QUALITY and this is in fact what the plain vanilla Delphi TFont code uses when it calls CreateFontIndirect in TFont.GetHandle.

For what it's worth, the MSDN documentation of LOGFONT.lfQuality is terrible, but my understanding is that DEFAULT_QUALITY results in font smoothing based on the system settings. It makes sense to me for TeeChart to use the system settings as its default.

Obviously it's trivial for me to change TeeFontAntiAlias in my code but I wanted to pass this opinion on to you and so be a good citizen!

Cheers, David.

Re: TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Posted: Thu Oct 28, 2010 1:02 pm
by narcis
Hi David,

Thanks for your feedback. I have added your request to the list to be considered in next releases. I guess this was adopted to get better rendering quality.

Re: TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Posted: Thu Oct 28, 2010 3:05 pm
by 16557452
Well, it results in worse rendering, at least on my system (vanilla Windows 7).