Sign in to follow this  
NexusOne

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this