1 Attachment(s)
open source ::: display text as gif fonts
hello everyone ^^
here's an open source i just wrote, and i think that some of you may find it useful.
as i'm often creating pixel games, of course i work with pixel fonts.
you surely noticed that there are several things that are not perfect:
> fonts are filled very often. that looks awful.
> you end up using "fonts for flash" everytime, because they work.
> fonts are not sophisticated (no gradiants, colors etc...)
so here's an idea; create your own pixel font, each letter is a gif (or png, jpg, whatever). by definition you can draw it as complicated as you want... import it in flash and replace the typo i used myself in it.
ok, here's the source. look at the actionscript, it's very short and commented. you can specify the space between the letters, as well as the alignement (left or right)
NOTE; this one does not allow very long sentences, since it's just a one line text. of course it can be worked a bit more... but you get the general idea.