Bitmap Fontsystem (Editor, Include, Fonts and Examples)

Advanced game related topics
Lebostein
Addict
Addict
Posts: 849
Joined: Fri Jun 11, 2004 7:07 am

Bitmap Fontsystem (Editor, Include, Fonts and Examples)

Post by Lebostein »

Hi,

here is my bitmap font system for PureBasic. It's a simple system. Every font need two files:
- a graphic file (*.BMP or *.PNG..)
- a data file (*.FONT) to save the grid over the bitmap, the ascii codes an the width of the characters

You can use the fonts in applications and games with a simple include file. You can create and edit fonts with the editor:

Image

Sorry, the editor an the examples are in german language. I work on an english language file soon...

Download: http://www.purearea.net/pb/showcase/show.php?id=165

Have fun!
Last edited by Lebostein on Mon Mar 21, 2005 11:41 am, edited 1 time in total.
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

Great, now I will be able to use al those cool Amiga Demos font :)
Pleeeease do the english version, german is totally alien to me :wink:
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Blade wrote:[...]german is totally alien to me :wink:
In fact, that's the case for most germans, too ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Lebostein, i need that :)
Please tell us when available in a terrestrial language
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Lebostein
Addict
Addict
Posts: 849
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

Before I upload the new version, can you check the language file for grammatical or orthography mistakes? Thank you!

http://home.arcor.de/tomysoft/temp/Language.txt
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I only see "Exit programm". I don't seemore errors.
And 262, 263 and 264. Should be too, not to.


That's it !
Nothing more to do.
Just copy the content of your txt link to the "FONTMAP.LANG" file. Then replace line 33:
"text$ = Trim(StringField(line$, 2, Chr(124)))"
by:
"text$ = Trim(StringField(line$, 3, Chr(124)))"
:D
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Lebostein
Addict
Addict
Posts: 849
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

Thank you!!! :D

Here is the new version with some small bug fixes and the new language file. If you will use the english language, open the "Language.txt" and change the first value on the first line from "1" to "2".

http://www.purearea.net/pb/showcase/show.php?id=165

Have a nice weekend!
Lebostein
Addict
Addict
Posts: 849
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

The new version 1.24 (I think, final version) can you download here:
http://www.purearea.net/pb/showcase/show.php?id=165
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Thanx :!:
:D
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Wow (yet again), another neat, useful offering!

Thanks!
Intrigued - Registered PureBasic, lifetime updates user
nessie
User
User
Posts: 60
Joined: Mon Jul 07, 2003 1:19 pm
Location: Glasgow / Scotland
Contact:

Font colour

Post by nessie »

Can you tell me how do I change the colour of the font?

:?:
Post Reply