TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
David Heffernan
Newbie
Newbie
Posts: 3
Joined: Mon Oct 11, 2010 12:00 am

TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Post by David Heffernan » Thu Oct 28, 2010 12:00 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Post by Narcís » Thu Oct 28, 2010 1:02 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

David Heffernan
Newbie
Newbie
Posts: 3
Joined: Mon Oct 11, 2010 12:00 am

Re: TeeFontAntiAlias=ANTIALIASED_QUALITY seems a bad choice

Post by David Heffernan » Thu Oct 28, 2010 3:05 pm

Well, it results in worse rendering, at least on my system (vanilla Windows 7).

Post Reply