我正在尝试在我的初始屏幕上预加载大量TTF和OFT字体,该屏幕还实现了带有纹理的加载栏。我的想法是,我预加载一组具有设定大小的字体,然后字体管理器在准备好使用时检索字体。我找到了以下类https://github.com/libgdx/libgdx/blob/master/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/FreetypeFontLoader.java但是在任何地方都没有关于如何使用它的文档。我试试下面的代码:parameter.size=(int)Math.ceil(fontStora