Home » Personal collection » Acorn hard disk » apps » FontEd » !FontEd/Bitmaps

!FontEd/Bitmaps

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » FontEd
Filename: !FontEd/Bitmaps
Read OK:
File size: 047E bytes
Load address: 0000
Exec address: 0000
File contents
Editing bitmap fonts
--------------------

Work done:
----------

1) When creating a bitmap font, an encoding file may be specified.  This file will be used to
choose which characters from the outline font get put where in the bitmap font.  The encoding
name is simply typed into the dialogue box, either as a full path name or a leaf name
to be sought under Font:Encodings. (hence you can normally just type Latin1).

2) When loading a bitmap font, the editor attempts to determine its encoding according to
the same rule as the Font Manager, viz: determine the name of the immediate parent directory
and look for an identically-named encoding file (in Font:Encodings.)  Hence, when saving a bitmap
font, you should put it in an appropriately-named subdirectory of the font directory.  The metrics
file will be sought in the main font directory as usual.

3) When editing a bitmap character you can now alter its size.  To implement this
sanely, a feature was sacrificed: the size of the bitmap is no longer automatically
updated if you change the corresponding outline character.

4) A couple of old bugs have been noted, but not yet investigated.
00000000  45 64 69 74 69 6e 67 20  62 69 74 6d 61 70 20 66  |Editing bitmap f|
00000010  6f 6e 74 73 0a 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |onts.-----------|
00000020  2d 2d 2d 2d 2d 2d 2d 2d  2d 0a 0a 57 6f 72 6b 20  |---------..Work |
00000030  64 6f 6e 65 3a 0a 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |done:.----------|
00000040  0a 0a 31 29 20 57 68 65  6e 20 63 72 65 61 74 69  |..1) When creati|
00000050  6e 67 20 61 20 62 69 74  6d 61 70 20 66 6f 6e 74  |ng a bitmap font|
00000060  2c 20 61 6e 20 65 6e 63  6f 64 69 6e 67 20 66 69  |, an encoding fi|
00000070  6c 65 20 6d 61 79 20 62  65 20 73 70 65 63 69 66  |le may be specif|
00000080  69 65 64 2e 20 20 54 68  69 73 20 66 69 6c 65 20  |ied.  This file |
00000090  77 69 6c 6c 20 62 65 20  75 73 65 64 20 74 6f 0a  |will be used to.|
000000a0  63 68 6f 6f 73 65 20 77  68 69 63 68 20 63 68 61  |choose which cha|
000000b0  72 61 63 74 65 72 73 20  66 72 6f 6d 20 74 68 65  |racters from the|
000000c0  20 6f 75 74 6c 69 6e 65  20 66 6f 6e 74 20 67 65  | outline font ge|
000000d0  74 20 70 75 74 20 77 68  65 72 65 20 69 6e 20 74  |t put where in t|
000000e0  68 65 20 62 69 74 6d 61  70 20 66 6f 6e 74 2e 20  |he bitmap font. |
000000f0  20 54 68 65 20 65 6e 63  6f 64 69 6e 67 0a 6e 61  | The encoding.na|
00000100  6d 65 20 69 73 20 73 69  6d 70 6c 79 20 74 79 70  |me is simply typ|
00000110  65 64 20 69 6e 74 6f 20  74 68 65 20 64 69 61 6c  |ed into the dial|
00000120  6f 67 75 65 20 62 6f 78  2c 20 65 69 74 68 65 72  |ogue box, either|
00000130  20 61 73 20 61 20 66 75  6c 6c 20 70 61 74 68 20  | as a full path |
00000140  6e 61 6d 65 20 6f 72 20  61 20 6c 65 61 66 20 6e  |name or a leaf n|
00000150  61 6d 65 0a 74 6f 20 62  65 20 73 6f 75 67 68 74  |ame.to be sought|
00000160  20 75 6e 64 65 72 20 46  6f 6e 74 3a 45 6e 63 6f  | under Font:Enco|
00000170  64 69 6e 67 73 2e 20 28  68 65 6e 63 65 20 79 6f  |dings. (hence yo|
00000180  75 20 63 61 6e 20 6e 6f  72 6d 61 6c 6c 79 20 6a  |u can normally j|
00000190  75 73 74 20 74 79 70 65  20 4c 61 74 69 6e 31 29  |ust type Latin1)|
000001a0  2e 0a 0a 32 29 20 57 68  65 6e 20 6c 6f 61 64 69  |...2) When loadi|
000001b0  6e 67 20 61 20 62 69 74  6d 61 70 20 66 6f 6e 74  |ng a bitmap font|
000001c0  2c 20 74 68 65 20 65 64  69 74 6f 72 20 61 74 74  |, the editor att|
000001d0  65 6d 70 74 73 20 74 6f  20 64 65 74 65 72 6d 69  |empts to determi|
000001e0  6e 65 20 69 74 73 20 65  6e 63 6f 64 69 6e 67 20  |ne its encoding |
000001f0  61 63 63 6f 72 64 69 6e  67 20 74 6f 0a 74 68 65  |according to.the|
00000200  20 73 61 6d 65 20 72 75  6c 65 20 61 73 20 74 68  | same rule as th|
00000210  65 20 46 6f 6e 74 20 4d  61 6e 61 67 65 72 2c 20  |e Font Manager, |
00000220  76 69 7a 3a 20 64 65 74  65 72 6d 69 6e 65 20 74  |viz: determine t|
00000230  68 65 20 6e 61 6d 65 20  6f 66 20 74 68 65 20 69  |he name of the i|
00000240  6d 6d 65 64 69 61 74 65  20 70 61 72 65 6e 74 20  |mmediate parent |
00000250  64 69 72 65 63 74 6f 72  79 0a 61 6e 64 20 6c 6f  |directory.and lo|
00000260  6f 6b 20 66 6f 72 20 61  6e 20 69 64 65 6e 74 69  |ok for an identi|
00000270  63 61 6c 6c 79 2d 6e 61  6d 65 64 20 65 6e 63 6f  |cally-named enco|
00000280  64 69 6e 67 20 66 69 6c  65 20 28 69 6e 20 46 6f  |ding file (in Fo|
00000290  6e 74 3a 45 6e 63 6f 64  69 6e 67 73 2e 29 20 20  |nt:Encodings.)  |
000002a0  48 65 6e 63 65 2c 20 77  68 65 6e 20 73 61 76 69  |Hence, when savi|
000002b0  6e 67 20 61 20 62 69 74  6d 61 70 0a 66 6f 6e 74  |ng a bitmap.font|
000002c0  2c 20 79 6f 75 20 73 68  6f 75 6c 64 20 70 75 74  |, you should put|
000002d0  20 69 74 20 69 6e 20 61  6e 20 61 70 70 72 6f 70  | it in an approp|
000002e0  72 69 61 74 65 6c 79 2d  6e 61 6d 65 64 20 73 75  |riately-named su|
000002f0  62 64 69 72 65 63 74 6f  72 79 20 6f 66 20 74 68  |bdirectory of th|
00000300  65 20 66 6f 6e 74 20 64  69 72 65 63 74 6f 72 79  |e font directory|
00000310  2e 20 20 54 68 65 20 6d  65 74 72 69 63 73 0a 66  |.  The metrics.f|
00000320  69 6c 65 20 77 69 6c 6c  20 62 65 20 73 6f 75 67  |ile will be soug|
00000330  68 74 20 69 6e 20 74 68  65 20 6d 61 69 6e 20 66  |ht in the main f|
00000340  6f 6e 74 20 64 69 72 65  63 74 6f 72 79 20 61 73  |ont directory as|
00000350  20 75 73 75 61 6c 2e 0a  0a 33 29 20 57 68 65 6e  | usual...3) When|
00000360  20 65 64 69 74 69 6e 67  20 61 20 62 69 74 6d 61  | editing a bitma|
00000370  70 20 63 68 61 72 61 63  74 65 72 20 79 6f 75 20  |p character you |
00000380  63 61 6e 20 6e 6f 77 20  61 6c 74 65 72 20 69 74  |can now alter it|
00000390  73 20 73 69 7a 65 2e 20  20 54 6f 20 69 6d 70 6c  |s size.  To impl|
000003a0  65 6d 65 6e 74 20 74 68  69 73 0a 73 61 6e 65 6c  |ement this.sanel|
000003b0  79 2c 20 61 20 66 65 61  74 75 72 65 20 77 61 73  |y, a feature was|
000003c0  20 73 61 63 72 69 66 69  63 65 64 3a 20 74 68 65  | sacrificed: the|
000003d0  20 73 69 7a 65 20 6f 66  20 74 68 65 20 62 69 74  | size of the bit|
000003e0  6d 61 70 20 69 73 20 6e  6f 20 6c 6f 6e 67 65 72  |map is no longer|
000003f0  20 61 75 74 6f 6d 61 74  69 63 61 6c 6c 79 0a 75  | automatically.u|
00000400  70 64 61 74 65 64 20 69  66 20 79 6f 75 20 63 68  |pdated if you ch|
00000410  61 6e 67 65 20 74 68 65  20 63 6f 72 72 65 73 70  |ange the corresp|
00000420  6f 6e 64 69 6e 67 20 6f  75 74 6c 69 6e 65 20 63  |onding outline c|
00000430  68 61 72 61 63 74 65 72  2e 0a 0a 34 29 20 41 20  |haracter...4) A |
00000440  63 6f 75 70 6c 65 20 6f  66 20 6f 6c 64 20 62 75  |couple of old bu|
00000450  67 73 20 68 61 76 65 20  62 65 65 6e 20 6e 6f 74  |gs have been not|
00000460  65 64 2c 20 62 75 74 20  6e 6f 74 20 79 65 74 20  |ed, but not yet |
00000470  69 6e 76 65 73 74 69 67  61 74 65 64 2e 0a        |investigated..|
0000047e