Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5121

Re: Apple /// FNT $07 File Format?

From David Schmidt <schmidtd@my-deja.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Apple /// FNT $07 File Format?
Date 2019-05-29 17:06 -0400
Organization A noiseless patient Spider
Message-ID <qcms7q$37t$1@dont-email.me> (permalink)
References <33af63bd-80b3-4214-91dd-95ef5ffaeb3a@googlegroups.com> <qcmn4m$5u6$1@dont-email.me>

Show all headers | View raw


On 5/29/19 3:39 PM, David Schmidt wrote:
> On 5/29/19 3:01 PM, Michael Pohoreski wrote:
>> Does anyone have any details on this file format?
>>
>> $07 FNT Apple III Font
>>
>> Is it 768 bytes? 1,024 bytes? 7-bit? 8-bit? monochrome?
> 
> It's 1,024 bytes.  Some discussion in the past:
> https://groups.google.com/d/msg/comp.sys.apple2/muPgbiFAyZU/I08ImikVDQAJ
> 
> Some resources from WAP:
> http://apple3.org/Software/wap/html/a3fonts.html
> 
> But I don't have a concise answer for the font file format.

Oooh, now I do - courtesy of APPLE-3-WAP-fnt-02b.dsk:

<quote>
Appendix D: Technical Reference

How Character Sets are Stored

Each character is stored as a 7-by-8 bit array.  Bits corresponding to 
pixels which are "ON" are set with a value of one;  background bits are 
set to zero.  The 7-by-8 bit array is stored as eight consecutive bytes 
- one byte for each row starting with the top row.  Within each of the 
eight bytes, bit 0 corresponds to the left-most pixel.

Bit 7 determines how each row of the character is displayed in inverse
mode. If bit 7 is set to zero, the foreground and background will be 
exchanged when inverse mode is on.  If all high bits are set to one, the 
character will flash when inverse mode is on.  For more information on 
making characters flash, see Chapter 8.

Every character set fontfile is stored as a three block data file (two 
blocks for data and a third block for system information). The character 
set used as the "system character set" is defined in the file 
"SOS.DRIVER" on any boot disk.  The system character set can be changed 
using the Apple /// System Utilities as detailed in Chapter 9 of this 
manual.
</quote>

Given that all font files in the wild are really two blocks long (2 x 
512 bytes) this third block they speak of might be the CustomFONT 
program's own metadata; I'm not sure about that.

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Apple /// FNT $07 File Format? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-29 12:01 -0700
  Re: Apple /// FNT $07 File Format? David Schmidt <schmidtd@my-deja.com> - 2019-05-29 15:39 -0400
    Re: Apple /// FNT $07 File Format? David Schmidt <schmidtd@my-deja.com> - 2019-05-29 17:06 -0400
      Re: Apple /// FNT $07 File Format? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-30 08:49 -0700
    Re: Apple /// FNT $07 File Format? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-30 09:12 -0700
      Re: Apple /// FNT $07 File Format? David Schmidt <schmidtd@my-deja.com> - 2019-05-30 12:41 -0400
    Re: Apple /// FNT $07 File Format? Andy McFadden <thefadden@gmail.com> - 2019-12-11 08:09 -0800

csiph-web