Thread: [GD-Windows] Disabling ClearType programmatically?
Brought to you by:
vexxed72
From: Brian H. <ho...@bo...> - 2006-01-14 01:14:56
|
Is there a way to disable ClearType and revert to a cruder form of AA (or none at all) when doing font rendering? I'm rendering to an HBITMAP which I then use for a texture, and ClearType doesn't work so hot with the rest of the graphics pipeline. Brian |
From: Jason S. <ja...@wi...> - 2006-01-14 01:26:45
|
This might help: http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/gdicpp= / GDIPlus/usingGDIPlus/usingtextandfonts/antialiasingwithtext.asp=20 -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Brian Hook Sent: Friday, January 13, 2006 5:15 PM To: gam...@li... Subject: [GD-Windows] Disabling ClearType programmatically? Is there a way to disable ClearType and revert to a cruder form of AA (or none at all) when doing font rendering? I'm rendering to an HBITMAP which I then use for a texture, and ClearType doesn't work so hot with the rest of the graphics pipeline. Brian ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dick _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 |
From: Andras B. <and...@gm...> - 2006-01-14 01:57:22
|
When you create your font with CreateFont(), you can specify the rendering type with the fdwQuality parameter. Brian Hook wrote: > Is there a way to disable ClearType and revert to a cruder form of AA > (or none at all) when doing font rendering? I'm rendering to an > HBITMAP which I then use for a texture, and ClearType doesn't work so > hot with the rest of the graphics pipeline. > > Brian |
From: Brian H. <ho...@bo...> - 2006-01-14 04:10:58
|
On Fri, 13 Jan 2006 18:57:00 -0700, Andras Balogh wrote: > When you create your font with CreateFont(), you can specify the > rendering type with the fdwQuality parameter. I wasn't under the impression that it provided a fine grain selection between CT, AA, and point sample? Brian |
From: Jon W. <hp...@mi...> - 2006-01-14 05:30:15
|
MSDN documents CLEARTYPE_QUALITY as separate from ANTIALIAS_QUALITY, for Windows XP and above. You can also set NONANTIALIASED_QUALITY which will make the font not anti-alias (works on all Windows). A font needs to be selected into a physical device DC before it will do anti-aliasing. Thus, if you create a font, and only select it into a DIBsection DC, it will draw without anti-aliasing. You can then upload this text to a texture or whatnot to render to screen (or draw the DIBsection). It's roundabout, but documented, and works. Cheers, / h+ Brian Hook wrote: > On Fri, 13 Jan 2006 18:57:00 -0700, Andras Balogh wrote: > >>When you create your font with CreateFont(), you can specify the >>rendering type with the fdwQuality parameter. > > > I wasn't under the impression that it provided a fine grain selection > between CT, AA, and point sample? > > Brian -- -- The early bird gets the worm, but the second mouse gets the cheese. |
From: Brian H. <ho...@bo...> - 2006-01-14 07:18:22
|
On Fri, 13 Jan 2006 21:30:05 -0800, Jon Watte wrote: > > MSDN documents CLEARTYPE_QUALITY as separate from > ANTIALIAS_QUALITY, for Windows XP and above. Argh, not in my version of MSDN and SDK tools =3D/ Anyway, this'll work, thanks! Brian |
From: Andras B. <and...@gm...> - 2006-01-14 16:02:48
|
While we are at tools: Did you know that Visual C++ 2005 Express is absolutely free (even for commercial use)? It features the same optimizing compiler, and the only major things it misses are the ATL and MFC libraries, and some advanced features like remote debugging.. It also uses the online MSDN for help, which means it does not eat up your harddrive, and it's more up to date. I think it's worth giving a try. I'm sorry if this is not news, but I've only found it out recently and was pleasantly surprised. I think it's great for indie developers. Andras Saturday, January 14, 2006, 12:18:15 AM, you wrote: > On Fri, 13 Jan 2006 21:30:05 -0800, Jon Watte wrote: >> >> MSDN documents CLEARTYPE_QUALITY as separate from >> ANTIALIAS_QUALITY, for Windows XP and above. > Argh, not in my version of MSDN and SDK tools =/ Anyway, this'll > work, thanks! > Brian |
From: Brian H. <ho...@bo...> - 2006-01-14 20:44:33
|
On Sat, 14 Jan 2006 09:02:34 -0700, Andras Balogh wrote: > While we are at tools: Did you know that Visual C++ 2005 Express is > absolutely free (even for commercial use)? Yeah, but I still use VC++ 6.0 w/ Visual Assist. Kickin' it old school. Every release since then has pissed me off righteously in some way or another. Brian |