Do default BitmapFont only have this low quality?

Hi,

I’m working on a side project for a board game. It looks like this:

As you can see the text gets rather blurry.
Heres how the score (top right corner) text is created:
[java]BitmapFont fnt = MainGame.getAsset().loadFont(“Interface/Fonts/Default.fnt”); //“font/font.fnt”);//
score = new BitmapText(fnt, false);
score.setBox(new Rectangle(0, 0, 6, 3));
score.setQueueBucket(Bucket.Translucent);
score.setSize( width * 0.5f );
score.setText(“3”);
score.setColor(ColorRGBA.Black);
score.setLocalTranslation(width/2,height/2+score.getSize(),1);
attachChild(score);[/java]

Can I fix that or must I create my own font with better resolution?

The font is (as the name suggests) just a bitmap/image, therefore it will be blurry when resized due to bilinear interpolation. It is basically the same thing observed when zooming in on a digital image.

There is a font generator in the SDK where you can create on your own font files.
File -> New File… -> GUI -> Font

Anytime you use a different size than the intended size for a font it will look like that. When you generate your fonts either in the SDK or the BMFont tool you need to increase the font size value as appropriate depending on how the font will be used.