Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / bitmap text class (great for menu's & stats displays)

Author
Message
shiny
20
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 2nd Jun 2005 19:56
I got a little fed up with seeing the standard monocolor default arial font in dark sdk so I created a class that displays text with a bitmap font. Naturaly you can edit the bitmap to look however you want making this quite a versitile and usefull class. At the moment its fairly limited in functionality but I'm sure someone will find it of use (I know I will). If you are interested in my posting of updates let me know as I'm probably going to expand it to include multiple lines of text, among other things.

Enjoy!

http://www.vtutorials.com/personal/bitmap_text.zip

Note: let me know if my comments are too brief an explanation of how to use it and I'll write a quick tutorial.

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 28th Jul 2005 15:03
not bad at all

where did you get that font ? Is it ok if I use it ?
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 28th Jul 2005 17:26
I like it Will come in use for future demos where we can get some really nice looking text. Keep us posted if you add any more to this.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 14th Aug 2005 02:09
Cool stuff
shiny
20
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 24th Aug 2005 11:11
I'm almost done with the next version. : ).

Major improvements include:

>completely re-written to create "text boxes" rather than just single line text.
>multiple line text with automatic wrapping
>turn the text to static so it only takes up one sprite and repositions faster
>text box is now scrollable
>button commands (for using the text as a button)
>borders / background options
>text can be centered
>many more commands!
>major speed enhancements
>includes many bitmap fonts!

I'm also going to provide proper documentation this time. (how to set up & implement). Just a few hurdles left and I'll release it! - if I'm lucky, by the end of the week.

scooby bloke
20
Years of Service
User Offline
Joined: 4th Nov 2004
Location:
Posted: 24th Aug 2005 12:12
Cool I look forward to seeing it
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 26th Aug 2005 21:35
Great work. I too am looking forwards to it.

-This...is my boomstick!
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 10th Sep 2005 14:09
Hi, any updates?

Cheers
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 10th Sep 2005 19:14
Oh, btw, if you want to create bitmap fonts to use with this class, check this out:

http://www.lmnopc.com/bitmapfontbuilder/

p.s. if anyone has any tips to get this working with more dynamic text, e.g. dbStr(dbScreenFPS()) let me know

Cheers!
shiny
20
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 13th Sep 2005 03:12
I ran into one annoying bug which delayed me into school time. Now I'm helishly busy. My primary db project is still running allong nicely though, and I'll be running into hurdles that will require me to perfect this class soon. Keep an eye out for an update, but I can't say exactly when it will be (damn, some of those logic errors take days to fix).

Lampton - not sure exactly what your question is. Does the following not work?

my_text.setText(dbScreenFPS());

Either way, the update will have documentation so it should be far easyer to make work : ).

Sorry for the delay all!

Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 15th Sep 2005 10:58
Hi ya,

@shiny, yup that works fine, but when the size of the fps string does down during the game (i.e. fps drops from 100 to 60) I seem to get a '0' in there where there should maybe be a blank. If I was at my dev machine I'd do a cut down may get to that soon!

Look forward to the update

Cheers.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 5th Oct 2005 11:39
Hi,

Just wondered if an updated version is still on the horizon?

Cheers
shiny
20
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 6th Oct 2005 02:37
I could release the alpha version, if you all promise not to be upset when something doesn't work as expected?

scooby bloke
20
Years of Service
User Offline
Joined: 4th Nov 2004
Location:
Posted: 6th Oct 2005 12:32
That would be cool. We could always help to fix any problems found
Unkelben
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 9th Nov 2005 19:31
Any new developments here? I'd sure like to try a good replacement for the TT fonts, I often get some strange artifacts on some letters, not always the same ones and it varies from a computer to the other.

I'd only need the center function to be added.

Jonathan

Login to post a reply

Server time is: 2024-11-24 06:41:00
Your offset time is: 2024-11-24 06:41:00