title: Drawing text in LibGDX
body: <p>I am having a hard time drawing text in LibGDX. Every time I run it, i get a black window. I want the text to be white, but I dont see anything. I have tried finding numerous tutorials and vieos, and still cannot get it to work. I do have a vaild fnt and png file in my assets folder / fonts.</p>
  
  <pre><code>package org.alexwebber.frc.stalk;
  
  import com.badlogic.gdx.ApplicationAdapter;
  import com.badlogic.gdx.ApplicationListener;
  import com.badlogic.gdx.Gdx;
  import com.badlogic.gdx.graphics.g2d.BitmapFont;
  import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  
  public class Main extends ApplicationAdapter
  {
      public class HelloWorld implements ApplicationListener
      {
          private SpriteBatch batch;
          private BitmapFont  font;
  
          @Override
          public void create()
          {
              batch = new SpriteBatch();
              font = new BitmapFont(Gdx.files.internal("fonts/main.fnt"),
                              Gdx.files.internal("fonts/main.png"), false);
          }
  
          @Override
          public void dispose()
          {
              batch.dispose();
              font.dispose();
          }
  
          @Override
          public void render()
          {
              batch.begin();
              font.setColor(255.0f, 255.0f, 255.0f, 255.0f);
              font.draw(batch, "Hello World", 25, 160);
              batch.end();
          }
  
          @Override
          public void resize(int width, int height)
          {
          }
  
          @Override
          public void pause()
          {
          }
  
          @Override
          public void resume()
          {
          }
      }
  }
  </code></pre>