title: How to use Font and Text in andEngine?
body: <p>That's how I tried to do it:</p>
  
  <pre><code>fontTextureAtlas = new BitmapTextureAtlas(1024, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
  font = FontFactory.createFromAsset(fontTextureAtlas,this,"times.ttf",45f,true,Color.WHITE);
  getEngine().getTextureManager().loadTexture(fontTextureAtlas);
  </code></pre>
  
  <p>and then, in code:</p>
  
  <pre><code>Text text = new Text(10,10, font,"Some text");
  scene.attachChild(text);
  </code></pre>
  
  <p>and all what I see is this: </p>
  
  <p><img src="https://i.stack.imgur.com/XnqaN.png" alt="black blocks instead of text"></p>
  
  <p>Also I tried to use <code>new Font(fontTextureAtlas,Typeface.DEFAULT,45f,true,Color.WHITE);</code> to initialize the <code>font</code>, but result was almost the same.</p>
  
  <p>Does anyone know what I did wrong?</p>