Jump to content
  • Advertisement
Sign in to follow this  
NexusOne

[.net] Sharper font edges- and Simpsons trivia!!!

This topic is 4904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I write fonts onto an Image and save it, the font edges are smoothed if my Display settings have font smoothening turned on, and not smoothed if it's not turned on (which makes sense). How do I say, when I write text onto an image, that I want the font edges NOT smoothed regardless of whether the setting is on or not? ***Simpsons Trivia*** (Just to get you to read my post) Q: Who were the four members of the B-Sharps?

Share this post


Link to post
Share on other sites
Advertisement
You might try:
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

Where g is your Graphics object. If that does work for you look at some of the other flags in the TextRenderingHint enumeration.

{Homer, Apu, Barny, Skinner}

Share this post


Link to post
Share on other sites
Quote:
You might try:
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;


Wouldn't this force rendering WITH smoothed edges? For un-smoothed edges, I think you want SingleBitPerPixel or SingleBitPerPixelGridFit.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!