在 LibGDX 中缩放位图字体

2022-01-12 00:00:00 android java libgdx

如何在 LibGDX 中缩放 Bitmapfont 对象?似乎 setScale 方法不再可用.

How can I scale a Bitmapfont object in LibGDX? It seems the method setScale is no longer available.

推荐答案

不建议缩放Bitmap字体,因为放大后看起来像素化(我认为这很难看)

It is not recommended to scale Bitmap font, because it looks pixlated when enlarged(which I believe is ugly)

建议使用 freetype generator 调整字体大小

It is recommended to use freetype generator for resizing your fonts

如果还想用bitmapFont Tenfour04 就对了

If you still want use bitmapFont Tenfour04 is correct

相关文章