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.

DarkBASIC Professional Discussion / Easy way to use .bmp fonts as fonts ?

Author
Message
Steve Fash
23
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 27th Aug 2003 21:14
Hi,
Whats the easiest way to use a traditional .bmp font (a la amiga etc) as a font-would I copy and paste each letter as a sprite or image ? Also I'm unsure of the correct way to do it to be honest....any tutes or source anywhere I can study please ?
Cheers

For game/demo music for YOUR PC and GP32 productions visit:-www.futuredevelopments.org.uk
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 27th Aug 2003 21:26
Hmm maybe you could use the sprite animation commands to make a sprite out of your font table bitmap - except instead of animating then you could use it to grab each letter?

Quote: "CREATE ANIMATED SPRITE
This command will create an animated sprite. The command automatically builds a sequence of animation
frames from an image file by cutting up the image into a grid specified by the Across and Down Values. The
Image Number will be used to hold the complete image. Use the PLAY SPRITE command to see the
individual frames of this image. The parameters should be specified using integer values.

SYNTAX
CREATE ANIMATED SPRITE Sprite Number, Filename, Across, Down, Image Number


SET SPRITE FRAME
This command will set the frame of the specified sprite. When a sprite contains an animated sequence of
frames created with the CREATE ANIMATED SPRITE command, you can set the frame directly using this
command. The parameters should be specified using integer values.

SYNTAX
SET SPRITE FRAME Sprite Number, Frame Value
"


There's no place like 127.0.0.1

There are 10 people in this world, those who understand binary and those who don't.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 27th Aug 2003 22:59
I've got a set of routines for using bitmaps as fonts - see my web site.


Login to post a reply

Server time is: 2026-07-23 00:17:42
Your offset time is: 2026-07-23 00:17:42