Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've written the basis to my UI system around Direct2D. I like it because it's fast and easy to use (even if I had to do some messy work to get it to work with DirectX11). However, I notice when using DirectWrite I'm getting strange problems with my text.

Text artifacts

As you can see, the e is a little screwwed up, and it overall looks a little bumpy. This only happens with certain fonts in certain sizes, and with certain arrangements of letters. This particular example is Verdana in size 16.0 font.

Can I fix this? It's pretty annoying to change all my words and fonts because of this problem.

share|improve this question
    
I'm not familiar with Direct2D/DirectWrite, but is there a way to enable antialiased font rendering? That might help. This looks like the font is being drawn at an awkward size that's causing the bar of the e to fall in between pixels and be missed, which antialising should solve. –  Nathan Reed Jun 23 '12 at 17:20
    
@NathanReed I'll search around, but it's not like its being drawn small or anything. Infact, if I shrink it, the problem goes away. –  smoth190 Jun 23 '12 at 20:45
    
Oddly, the problem disappeared today. I can't really post an answer because I don't know what fixed it. –  smoth190 Jun 25 '12 at 21:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.