title: Error loading font file: data/calibri.fnt
body: <p>I get this error when I try to load the font file.</p>
  
  <p><code>Error loading font file: data/calibri.fnt</code></p>
  
  <p>I may be missing something that is very simple (and stupid), but have been trying to figure it out since many hours in SO and googgling.
  Here is my sample code -</p>
  
  <p><code>import com.badlogic.gdx.graphics.g2d.BitmapFont;
   font = new BitmapFont(Gdx.files.internal ("data/calibri_new.fnt"), true);
   font.draw(textBatcher, "abcd", 40, 40);</code></p>
  
  <p>I have copied calibri.fnt file under the folder data. (I'm not using calibri.png). Can someone please help?</p>
  
  <p>The default font Arial with font size 15 works well when I just keep it to
  <code>font = new BitmapFont();</code></p>
  
  <p>Error reads as below - (My reputation is not high enough to post an image :( )</p>
  
  <p><code>Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Error loading font file: data/calibri_new.fnt
      at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.&lt;init&gt;(BitmapFont.java:971)
      at com.badlogic.gdx.graphics.g2d.BitmapFont.&lt;init&gt;(BitmapFont.java:120)
      at com.badlogic.gdx.graphics.g2d.BitmapFont.&lt;init&gt;(BitmapFont.java:113)
      at com.kilobolt.GameWorld.GameRenderer.&lt;init&gt;(GameRenderer.java:81)
      at com.kilobolt.Screens.GameScreen.&lt;init&gt;(GameScreen.java:38)
      at com.kilobolt.ZombieBird.ZBGame.create(ZBGame.java:13)
      at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:136)
      at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
  Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Invalid font file: data/calibri_new.fnt
      at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.&lt;init&gt;(BitmapFont.java:809)
      ... 7 more</code></p>