【发布时间】:2012-07-16 13:24:50
【问题描述】:
我就是这样尝试的:
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,但结果几乎一样。
有谁知道我做错了什么?
【问题讨论】: