NewsBot Posted April 14, 2008 Posted April 14, 2008 I've got a simple painting routine for a control I made, it calls the TextRenderer class directly, like so: using(Font fText = new Font("MS Sans Serif", 10)) using(Font fTitl = new Font(fText, FontStyle.Regular)) { // FontStyle.Bold)) { // g.DrawString(e.Participant.Name, fText, SystemBrushes.ControlText, rCapName); // g.DrawString(e.Name , fTitl, SystemBrushes.ControlText, rCapTitl); TextRenderer.DrawText(g, e.Participant.Name, fText, rCapName, SystemColors.ControlText, TextFormatFlags.Left); TextRenderer.DrawText(g, e.Name , fTitl, rCapTitl, SystemColors.ControlText, TextFormatFlags.Left); } Yet when ClearType is enabled the text comes out with an ugly bold appearance, but turn ClearType off ("Standard" anti-aliasing is fine) and it looks fine. ClearType is on the left, Standard on the right. What's up? http://www.w3bdevil.com/misc/ClearTypeBork.png More... View All Our Microsoft Related Feeds Quote View All Our Microsft Related Feeds
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.