---
title: "Can't change font color in Libgdx using java"  
description: "Can't change font color in Libgdx using java"  
author: "Anonymous User"  
published: 2013-10-05  
updated: 2013-10-05  
canonical: https://www.mindstick.com/forum/1610/can-t-change-font-color-in-libgdx-using-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Can't change font color in Libgdx using java

I'm [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to change the [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) of the font I use in my application. But whatever I try the font [remains black](https://answers.mindstick.com/qa/109167/what-to-do-if-my-phone-s-screen-remains-black-after-a-sudden-drop). I made this font using Hiero font tool.

My [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) is something like this:

```
    SpriteBatch batch = new SpriteBatch();
    BitmapFont font = new BtimapFont( Gdx.files.internal(MainAssets.pathToAssets + "font/comic.fnt"), Gdx.files.internal(MainAssets.pathToAssets +  "font/comic.png"), false );
```

\

In [render](https://www.mindstick.com/interview/2205/why-we-need-a-separate-mobile-project-template-while-we-can-render-our-web-application-in-mobile-what-s-new-in-mvc-4-mobile-template) where I draw the font:

```
    batch.begin();
    font.setColor(1, 0, 0, 1);
    font.draw(batch, "Hello World!", 0, 0);
    batch.end();
```

## Replies

### Reply by Anonymous User

you can use this

font.setColor(Color.BLUE);


---

Original Source: https://www.mindstick.com/forum/1610/can-t-change-font-color-in-libgdx-using-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
