That's how I tried to do it:
fontTextureAtlas = new BitmapTextureAtlas(1024, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
font = FontFactory.createFromAsset(fontTextureAtlas,this,"times.ttf",45f,true,Color.WHITE);
getEngine().getTextureManager().loadTexture(fontTextureAtlas);
and then, in code:
Text text = new Text(10,10, font,"Some text");
scene.attachChild(text);
and all what I see is this:
Also I tried to use new Font(fontTextureAtlas,Typeface.DEFAULT,45f,true,Color.WHITE);
to initialize the font
, but result was almost the same.
Does anyone know what I did wrong?
Try adding font.load();
after getEngine().getTextureManager().loadTexture(fontTextureAtlas);
If that doesn't work try
getEngine().getFontManager().loadFont(font);