Text Fill Color

Is there any way to create text with a different fill and stroke (border) color?

Example - http://i.imgur.com/wghw5fW.jpg

As you can see, the border of the text remains black while the fill color in the center changes. 

Those are probably bitmap fonts. There are various programs for creating bitmap fonts, the one I use is called bmGlyph.

There are also various libraries to facilitate using them in Corona. I am currently using fontManager.

https://github.com/autismuk/Font-Manager

I haven’t experimented with fonts with outlines though. I’m not sure whether you can create one font in white and use setfillcolor as normal without tinting the black outline, or if you need to create a different version for each colour you want.

I use bitmap fonts almost exclusively now, as they are much quicker to render than display.newText and my games use a lot of text.

The way our display.newText() is created, you can’t fill or stoke them, just set the color.  Bitmap fonts are really cool. I’m using the same Font-Manager that Nick mentioned above with bmGlyph as the font creator in the game I’m working on in my spare time right now.

I’ll take whatever hacky solutions I can get lol. If I can just make text with different fill colors I’ll definitely do that. I was under the impression that font files had no colors. But what I can see from this bmGlyph editor is that you can edit these fnt files to whatever colors you want. Which works fine by me. 

Thanks for the help :slight_smile:

Those are probably bitmap fonts. There are various programs for creating bitmap fonts, the one I use is called bmGlyph.

There are also various libraries to facilitate using them in Corona. I am currently using fontManager.

https://github.com/autismuk/Font-Manager

I haven’t experimented with fonts with outlines though. I’m not sure whether you can create one font in white and use setfillcolor as normal without tinting the black outline, or if you need to create a different version for each colour you want.

I use bitmap fonts almost exclusively now, as they are much quicker to render than display.newText and my games use a lot of text.

The way our display.newText() is created, you can’t fill or stoke them, just set the color.  Bitmap fonts are really cool. I’m using the same Font-Manager that Nick mentioned above with bmGlyph as the font creator in the game I’m working on in my spare time right now.

I’ll take whatever hacky solutions I can get lol. If I can just make text with different fill colors I’ll definitely do that. I was under the impression that font files had no colors. But what I can see from this bmGlyph editor is that you can edit these fnt files to whatever colors you want. Which works fine by me. 

Thanks for the help :slight_smile: