Search code examples
c#fontsxnamonogamespritefont

Light SpriteFont colors in MonoGame/XNA are low quality


I am creating a game about internet safety but when using SpriteFont the light colours such as white or light blue come up really grainy and low quality. Black on the other hand is really clear. I was wondering if there is a way to fix this?

Image with black colored SpriteFont

Image with white colored SpriteFont


Solution

  • Have you tried increasing the size of the font to the double and set the scale to half?

    You can do this by open your spritfont file with visual studio and edit the value inside the 'size' tag. Then set the scale when you call on DrawString:

    float scale = 0.5f;
    spriteBatch.DrawString(myFont, "Hello World", fontPosition, Color.White, 0f, 
        fontOrigin, scale, SpriteEffects.None, 0.5f);