Home |  Downloads |  Purchase |  Support |  Forums |  Blog |  About us |  Carthago
Home · Blog
Carthago Software Blog

DeskTask And clearType

Posted: 2006-01-10 22:58

DeskTask Transparent abilities and ClearType (found on Windows XP Systems) don't combine well.

ClearType cleans the edges on fonts to blend with the background and this is where DeskTask as problems, it as no fixed background, so sometimes it looks good, but sometimes you will see shades of black.
Also ClearType is automatic, there is no way a programmer can say to Windows : "Don't draw this text with Clear Type".

So the only Workaround, besides turning off cleartype, is using a bitmap font (ClearType only works on True Type Fonts). Bitmap fonts are pixel basead fonts instead of vector based like the True Types one. That is the reason why a bitmap font only one fixed size (some may have severall sizes, but different font files have to be installed. True Type fonts supports all sizes in the same file).

There are a lot of free bitmap fonts on the web, it's just a question of finding one that suits you.

http://www.carthagosoft.net/blog/upload/desktaskintro.gif

In this screenshot I used this font which is a bit small but looks good on any background, and even better with shadow on.
Permalink
2008-10-04 23:18
anon,

Thanks a lot for the tip, i can now successfully draw text without Clear Type.

Regards,
anon
2008-10-03 22:01
Windows doesn't force you to use ClearType.

Just specify ANTIALIASED_QUALITY instead of CLEARTYPE_QUALITY with CreateFont.

http://msdn.microsoft.com/en-us/library/ms534214.aspx
http://blogs.msdn.com/oldnewthing/archive/2006/06/14/630864.aspx
2008-10-03 21:32
Hi,

"That not true. You can definitely pick the type of font rendering in GDI/GDI+, etc."

Not in the research I done, DeskTask uses the traditional TextOut API to draw the text and there is no option on the canvas to disable ClearType.

Maybe using GDI+ it can be done, will check that later, thanks.
anon
2008-10-03 07:35
"Also ClearType is automatic, there is no way a programmer can say to Windows : "Don't draw this text with Clear Type"."

That not true. You can definitely pick the type of font rendering in GDI/GDI+, etc.
Powered by sBLOG © 2005 Servous

COPYRIGHT 1998-2009 CARTHAGO SOFTWARE. ALL RIGHTS RESERVED.