Get cleartype on loaded GUI fonts

BlitzMax Forums/BlitzMax Module Tweaks/Get cleartype on loaded GUI fonts

JoshK(Posted 2011) [#1]
win32maxguiex.bmx:

Find this:
		handle=CreateFontW( cfsize, 0,0,0,cfweight,..
			(_style & FONT_ITALIC) ,..
			(_style & FONT_UNDERLINE),..
			(_style & FONT_STRIKETHROUGH),..
			DEFAULT_CHARSET,..
			OUT_DEFAULT_PRECIS,..
			CLIP_DEFAULT_PRECIS,..
			ANTIALIAS_QUALITY,..
			DEFAULT_PITCH|FF_DONTCARE,..
			_name.toWString())


Replace with this:
		handle=CreateFontW( cfsize, 0,0,0,cfweight,..
			(_style & FONT_ITALIC) ,..
			(_style & FONT_UNDERLINE),..
			(_style & FONT_STRIKETHROUGH),..
			DEFAULT_CHARSET,..
			OUT_DEFAULT_PRECIS,..
			CLIP_DEFAULT_PRECIS,..
			CLEARTYPE_QUALITY,..
			DEFAULT_PITCH|FF_DONTCARE,..
			_name.toWString())


Loaded GUI fonts will now have cleartype, if it is enabled. This is good for text editors.


xlsior(Posted 2011) [#2]
Nice find, that probably should be made part of the standard build. :-?