English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 12 October 2007, 15:28   #1
ant512
Registered User
 
Join Date: Dec 2002
Location: California
Posts: 965
Bitmap Font File Structure

Does anyone know anything about the structure of Amiga bitmap font files? I'm guessing that they're more or less standard IFF ILBM files with extra information specifying character width and height - is this correct? Can anyone point me in the direction of a complete spec for the file format that I could use to implement a font loader?

Thanks!
ant512 is offline  
Old 12 October 2007, 16:08   #2
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,115
There is a font loader source buried in some of the WHDLoad example slave sources, it's pretty straightforward.

You're basically right about the format. There is a header, which I believe is specified in a system include file somewhere (textfont.[ih] ?), then the font glyphs follow it as one big bitmap. You need to shift & mask to cut out the raw data for the glyph you need.
girv is offline  
Old 12 October 2007, 20:02   #3
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,651
They are nothing like IFF files.

They are documented in the Amiga ROM Kernel Reference Manual: Libraries. More specifically:

http://cataclysm.cx/random/amiga/ref.../node03E0.html
Minuous is offline  
Old 13 October 2007, 00:15   #4
ant512
Registered User
 
Join Date: Dec 2002
Location: California
Posts: 965
Thanks guys. Looks like fonts *are* IFF files, but they come with the extra .font file that contains the font descripton info.
ant512 is offline  
Old 13 October 2007, 15:00   #5
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,651
"For each font size described in a FontContents (or TFontContents)
structure, there is a corresponding file in that font's directory whose
name is its size. For example, for the font size Sapphire-19, there is a
file in the Sapphire directory called 19. That file is basically a
DiskFontHeader disguised as a loadable DOS hunk and is known as a font
descriptor file. This allows the diskfont.library to use the dos.library
to load the module just like it was a hunk of relocatable 680x0
instructions. It even contains two instructions before the real
DiskFontHeader structure that will cause the 680x0 to stop running the
DiskFontHeader if it does inadvertently get executed."

"If it doesn't start with "FORM", "LIST", or "CAT ", it's not an IFF-85 file."
Minuous is offline  
Old 13 October 2007, 17:13   #6
ant512
Registered User
 
Join Date: Dec 2002
Location: California
Posts: 965
Yeah, I read through in a rush and made some stupid assumptions. Thanks for your patience!
ant512 is offline  
Old 14 October 2007, 10:05   #7
YoJoe!
Amiga Enthusiast
 
Join Date: Oct 2007
Location: USA
Posts: 217
I figured out the plain monochrome font file structure years ago but I never could figure out how in the name of Jay to create or use a ColorFont
YoJoe! is offline  
Old 20 October 2007, 08:33   #8
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
like minuous said, their mentioned in the Amiga RKM.

you can find it on the Kick 1.3 rkm that comes on the fish disks.

Comes with full source and a description to a example font.
redblade is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[factory] EoB engines' structure investigation JackAsser project.Amiga Game Factory 456 23 March 2023 10:54
Question for someone that understands disk structure Djay support.Other 5 20 February 2011 16:04
EAB File Server structure update TCD project.Amiga File Server 38 18 November 2010 06:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08942 seconds with 13 queries