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

Started by
2 comments, last by Holy Fuzz 18 years, 9 months ago
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?
Graphics make the game! 8-)
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}

Shedletsky's Bits: A Blog | ROBLOX | Twitter
Time held me green and dying
Though I sang in my chains like the sea...

LOL!

Ratings for Originality in Post... [wink]
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.

This topic is closed to new replies.

Advertisement