0
私はこのエラーの参照を見ましたが、解決策はありませんでした。Slick2d drawstringはボックスを描画しますが、テキストはありません
テキストを描画する場合、指定された色の実線ボックスのみが描画されます。
コードは次のようである:
TrueTypeFont font;
Font awtFont = new Font("Arial Unicode MS", Font.BOLD, 12); //name, style (PLAIN, BOLD, or ITALIC), size
font = new TrueTypeFont(awtFont, true); //base Font, anti-aliasing true/false
while (!Display.isCloseRequested()) {
render();
font.drawString(10, 10, "ABC123", Color.black); //x, y, string to draw, color