Anti-Aliasing Fonts
-
Thursday, February 05, 2009 4:05 PMHi,
Now that I know how to load and display fonts from a .TTF file, my question is how do I anti-alias text when I draw using Graphics.DrawText(...) ? They look ugly otherwise. I am using WM 6.0 device and CF 3.5.
Thanks!
All Replies
-
Friday, February 06, 2009 4:08 PM
Hi,
The following PDF might help you :-
http://community.opennetcf.com/blogs/cf/200710/GDIPlus/Using%20GDI+%20on%20Windows%20Mobile.pdf
Hope this helps.
Paul Diston
http://www.smartmobiledevice.co.uk/- Marked As Answer by warrentangModerator Thursday, February 12, 2009 3:11 AM
-
Wednesday, February 11, 2009 12:40 AM
Hi,
Another possibility worth investigating is turning on Antialiasing or ClearType for your existing Graphics.DrawText call.
Peter Foot discusses how this is achievable via the Microsoft.WindowsCE.Forms.LogFont class in a blog post of his titled "Antialisasing and .NETCF" available at http://inthehand.com/blogs/peterfoot/archive/2008/04/02/antialisasing-and-netcf.aspx.using Microsoft.WindowsCE.Forms; LogFont lf = new LogFont(); lf.FaceName = "Tahoma"; lf.Height = 48; lf.Quality = LogFontQuality.AntiAliased; label2.Font = Font.FromLogFont(lf);
Hope this helps,
Christopher Fairbairn
Visit my blog at http://www.christec.co.nz/blog/- Marked As Answer by warrentangModerator Thursday, February 12, 2009 3:11 AM

