|
Title: How to create custom bitmap font? Post by: dimakoles on October 27, 2013, 03:46:22 AM Bitmap font generator http://www.angelcode.com/products/bmfont/ (http://www.angelcode.com/products/bmfont/) can creates fonts in black and white only. I'm looking for more advanced tool. Share you experience on it please. Thanks in advance. (Output file format is .fnt)
Title: Re: How to create custom bitmap font? Post by: nikki on October 27, 2013, 05:00:21 AM you could set the color to anything you'd like before drawing the text though.
or you could change the colors in your bitmap to your fancy Title: Re: How to create custom bitmap font? Post by: dimakoles on October 27, 2013, 05:12:49 AM Choosing color for font needs artist skills. I'm looking for automatic way, not just editing in Photoshop
Title: Re: How to create custom bitmap font? Post by: Christian Knudsen on October 27, 2013, 05:40:06 AM I don't think nikki is talking about coloring the font in Photoshop. If you've got a white font, you can change its color when blitting to the screen by indicating what the R, G and B color values should be.
Title: Re: How to create custom bitmap font? Post by: nikki on October 27, 2013, 06:24:59 AM yeah changing the color programatically is what I would do/have done.
for colored fonts with colored borders/shadows I'd draw the font twice; -first in the background color -and over that, slightly offsetted, in the foregroundcolor but I also pointed to the (crazy) possibility of changing the colors in your actual bitmap. Imagine you want all your "A"'s yellow and your "B"'s with a red to green gradient and etc then that route would make sense, I hope for readability's sake that it doesn't though ;) Title: Re: How to create custom bitmap font? Post by: hatu on October 31, 2013, 03:40:39 AM I'm not sure what .fnt file format is for but you can just create a bitmap font in Photoshop and treat it just like a spritesheet.
Title: Re: How to create custom bitmap font? Post by: soryy708 on October 31, 2013, 11:42:49 AM http://lazyfoo.net/SDL_tutorials/lesson30/index.php
This guy tells you how to program bitmap fonts. See if you can analyze that and see how to create content on which his algorithm will work perfectly. |