Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Forum => Topic started by: Brick Nash on April 17, 2018, 06:00:14 AM

Title: Using graphic/sprite fonts or text
Post by: Brick Nash on April 17, 2018, 06:00:14 AM
Hey folks, I'm looking for a way to add graphics based text fonts (I think some call them sprite fonts in other programs) - as in reading of a sheet of text where the letters are, for example - 16x16 on the page. I've got some lovely arcade font sheets which I downloaded as PNGs and converted to IFF and I'd like to use them.

I wrote a custom block chopper a while ago for Bob images which looks at a sheet then chops out a specified size of rectangle or square then moves right and does the same until it hits the last column then goes back to the far left but down a specified amount to the next row.

I think it would work just as well for chopping out the text and saving it to a Bob bank, but just in case there are any other (or easier) ways that I can use graphics fonts then I'd be very grateful if people would share them.

It's just for a small demo I'm trying where I want some text to appear letter by letter on the screen (which I'll need to find out how to do as well) so it'd be cool for some info.

Many thanks!
Title: Re: Using graphic/sprite fonts or text
Post by: adrazar on April 19, 2018, 05:43:32 PM
APPROVED

[by me, because this is the approach I would have chosen :)]

The only solution I can think of as "better" would be to somehow create an actual font from the letters, but that is provided they use only one colour.
Title: Re: Using graphic/sprite fonts or text
Post by: SamuraiCrow on April 19, 2018, 11:41:36 PM
Tile fonts are common on AmosPro.  I would suggest that you store them as icon banks though, because icon plotting commands are twice as fast and the banks don't need to store a mask.