Jump to content

Recommended Posts

Posted

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...