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.

Code Snippets / Font Ripper

Author
Message
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 23rd May 2004 10:24
Ever seen how much a program slows down when too many text commands are used? Want the easy way round? Instead of drawing each letter manually over hours, you can use this little code snippet. It will create a folder called 'Font' in the same directory, and copy all 224 ascii characters named their number. eg, " " = "32.bmp". And to top that off, i added a function to use them in:

code to make the fonts. A seperate program altogether:


code to load the fonts into ur program. Make a directory called 'Font' in the folder with your .dba file. Put this at the start of your program:


function. Put this at the end of your program:


i hope this is helpful to someone

.........what's the point of reading this?
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th May 2004 19:11
Nice one...simple but effective as they say.

BatVink
http://facepaint.me.uk/catalog/default.php AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 27th May 2004 11:08
Yes, simple. Too bad I didn't think of it before I did 26 of my own letters manually...

.........what's the point of reading this?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th May 2004 11:21
lol @ Dark.

I remember creating my own fonts for QBasic. Try creating a whole alphabet using the Dot command. Then parsing the given string to determine which letter to draw.

"eureka" - Archimedes
Powersoft
22
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 11th Jun 2004 10:22
lol@phaleax


Create or Play? You choose!
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 11th Jun 2004 11:46
Very good Dark Sephiroth. Will definitly come in handy.


------------

Phaelax , (speechless)

A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Yyrd
21
Years of Service
User Offline
Joined: 29th Mar 2004
Location: Under some bridge
Posted: 29th Sep 2004 04:29
i ran this and got a bunch of black bmp's
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 29th Sep 2004 11:24
They aren't just black bmps, each has a letter that is very close to black, but the background is 0,0,0 black to keep it transparent - if you want to see the letters, go into paint and use the paintbucket tool anywhere and that'll make them visible.

-Formerly DarkSephiroth-
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 29th Sep 2004 11:54
Sorry to side track the thread a little, last week I happened to come across a website while looking for graffiti fonts/art for a ezine I was working on, and found a goldmine site.

http://www.graffitifonts.com/fonts.shtml

These fonts would look nice in some programs. I've already used a few with DBP, and Adobe Illustrator.
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 29th Sep 2004 13:16
Wow thanks, these are really great. They're free right?
By that I mean, can I distribute them with my games??

-Formerly DarkSephiroth-
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 29th Sep 2004 13:19 Edited at: 29th Sep 2004 13:21
The page says:

Quote: "All fonts are considered freeware."


I figure it would be okay. I've been using them in my projects lately.

[edit] - One quick note, I did notice during my use of these fonts that a majority of them don't have the numbers included. Be sure to check for that.
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 29th Sep 2004 13:47
Nice, might use one now then
Thanks for the info Torrey, these should be real helpful

-Formerly DarkSephiroth-
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 29th Sep 2004 19:59
Quote: "Ever seen how much a program slows down when too many text commands are used?"


That may be why.

Absent.

Login to post a reply

Server time is: 2025-08-09 01:36:19
Your offset time is: 2025-08-09 01:36:19