それが私がそれをやろうとした方法です:
fontTextureAtlas = new BitmapTextureAtlas(1024, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
font = FontFactory.createFromAsset(fontTextureAtlas,this,"times.ttf",45f,true,Color.WHITE);
getEngine().getTextureManager().loadTexture(fontTextureAtlas);
そして、コードで:
Text text = new Text(10,10, font,"Some text");
scene.attachChild(text);
そして、私が見るのはこれだけです:
またnew Font(fontTextureAtlas,Typeface.DEFAULT,45f,true,Color.WHITE);
、 を初期化するために使用しようとしましたfont
が、結果はほぼ同じでした。
誰かが私が間違ったことを知っていますか?