Text in buttons are placed meshed up

Apr 5, 2012 at 1:57 PM

When i follow the example states on this project page whenever i place some buttons and assign a textrender with a font on it the text in the buttons arent nice placed but rather displaced like if its missing anti alliasing


Apr 5, 2012 at 5:35 PM

Can you post of screen shot of what it looks like?

When you create a new sprite font XNA creates an image-map using that font that is not anti-aliased. You can create and use your own image-maps using tolls such as http://www.nubik.com/SpriteFont/ which allow much nicer fonts anti-aliasing and even sub-pixel hinting.

Apr 5, 2012 at 6:24 PM
Edited Apr 5, 2012 at 6:24 PM



Here is what it look like,

I will look at the tools too thanks 

Apr 6, 2012 at 3:59 PM

Yeah unless the font looks better when you draw it with Spribatch.DrawString that is just how the font looks without AA or SPS (How XNA creates the font be default). Try using one generated nubik.