Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Using graphic/sprite fonts or text  (Read 3667 times)

0 Members and 3 Guests are viewing this topic.

Brick Nash

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 83
  • Generic Amiga User
Using graphic/sprite fonts or text
« 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!
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: Using graphic/sprite fonts or text
« Reply #1 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.
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Using graphic/sprite fonts or text
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022