Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_18.ADF » P/CText1
P/CText1
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 ADFS disks » Electron_User_Group » EUG_18.ADF |
Filename: | P/CText1 |
Read OK: | ✔ |
File size: | 0844 bytes |
Load address: | 4D204556 |
Exec address: | 656C534F |
File contents
Customising the electron character set ______________________________________ Have you ever wanted to produce a more interesting screen display by using different letter styles? There are several ways in which you can. One way is by installing a rom containing a font, e.g. Charrom which contains twelve new fonts. Another way is to create your own fonts by using one of the font designers available. There are several font designers available through the PD libraries that do the job very well, two of these being: The Boofont font designer and the Andrew Pepperell font designer. Both of these designers work on the BBC but only the Boofont designerworks on the electron. Once a new font has been created and saved to disc, the code has to beconverted for it to be usable. As the code for each character was saved,the individual parts were joined together to form one string of 24bytes. 0 0 0 0 1 1 1 1 15 0 0 0 0 1 0 0 1 9 0 0 0 1 0 0 1 0 18 0 0 0 1 0 0 1 0 18 0 0 1 1 1 1 0 0 60 0 0 1 0 0 1 0 0 36 0 1 0 0 1 0 0 0 72 0 1 0 0 1 0 0 0 72 If the character is defined as above then the saved character string is: 015009018018060036072072 The conversion program is supplied on the disc with the filename"Convert" which takes the file as named in line 20 and the name of the converted file in line 30. The convertion takes about 45 seconds and once converted the font file can be *RUNned. Once the new font is installed in memory it stays until break is pressed. If you wish to use the new fonts on the electron, extra memory has to be set aside for the character definitions. So to properly install the new font type the following: *FX20,6 *RUN fontname PAGE = &1900 If you choose to use Andrew Pepperells font designer, the output produced is of a different form and because of this a different conversion method is needed. The program "Convert2" is for use with this designer and when converted the font can be used as before.
00000000 20 20 20 20 20 20 20 20 20 20 20 43 75 73 74 6f | Custo| 00000010 6d 69 73 69 6e 67 20 74 68 65 20 65 6c 65 63 74 |mising the elect| 00000020 72 6f 6e 20 63 68 61 72 61 63 74 65 72 20 73 65 |ron character se| 00000030 74 0d 20 20 20 20 20 20 20 20 20 20 20 5f 5f 5f |t. ___| 00000040 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00000060 5f 5f 5f 0d 0d 0d 48 61 76 65 20 79 6f 75 20 65 |___...Have you e| 00000070 76 65 72 20 77 61 6e 74 65 64 20 74 6f 20 70 72 |ver wanted to pr| 00000080 6f 64 75 63 65 20 61 20 6d 6f 72 65 20 69 6e 74 |oduce a more int| 00000090 65 72 65 73 74 69 6e 67 20 73 63 72 65 65 6e 20 |eresting screen | 000000a0 10 0d 64 69 73 70 6c 61 79 20 62 79 20 75 73 69 |..display by usi| 000000b0 6e 67 20 64 69 66 66 65 72 65 6e 74 20 6c 65 74 |ng different let| 000000c0 74 65 72 20 73 74 79 6c 65 73 3f 20 0d 0d 54 68 |ter styles? ..Th| 000000d0 65 72 65 20 61 72 65 20 73 65 76 65 72 61 6c 20 |ere are several | 000000e0 77 61 79 73 20 69 6e 20 77 68 69 63 68 20 79 6f |ways in which yo| 000000f0 75 20 63 61 6e 2e 20 20 4f 6e 65 20 77 61 79 20 |u can. One way | 00000100 69 73 20 62 79 20 10 0d 69 6e 73 74 61 6c 6c 69 |is by ..installi| 00000110 6e 67 20 61 20 72 6f 6d 20 63 6f 6e 74 61 69 6e |ng a rom contain| 00000120 69 6e 67 20 61 20 66 6f 6e 74 2c 20 65 2e 67 2e |ing a font, e.g.| 00000130 20 43 68 61 72 72 6f 6d 20 77 68 69 63 68 20 0d | Charrom which .| 00000140 63 6f 6e 74 61 69 6e 73 20 10 74 77 65 6c 76 65 |contains .twelve| 00000150 20 6e 65 77 20 66 6f 6e 74 73 2e 20 41 6e 6f 74 | new fonts. Anot| 00000160 68 65 72 20 77 61 79 20 69 73 20 74 6f 20 63 72 |her way is to cr| 00000170 65 61 74 65 20 79 6f 75 72 20 6f 77 6e 20 0d 66 |eate your own .f| 00000180 6f 6e 74 73 20 62 79 20 10 75 73 69 6e 67 20 6f |onts by .using o| 00000190 6e 65 20 6f 66 20 74 68 65 20 66 6f 6e 74 20 64 |ne of the font d| 000001a0 65 73 69 67 6e 65 72 73 20 61 76 61 69 6c 61 62 |esigners availab| 000001b0 6c 65 2e 20 0d 0d 54 68 65 72 65 20 61 72 65 20 |le. ..There are | 000001c0 73 65 76 65 72 61 6c 20 66 6f 6e 74 20 64 65 73 |several font des| 000001d0 69 67 6e 65 72 73 20 61 76 61 69 6c 61 62 6c 65 |igners available| 000001e0 20 74 68 72 6f 75 67 68 20 74 68 65 20 50 44 20 | through the PD | 000001f0 10 0d 6c 69 62 72 61 72 69 65 73 20 74 68 61 74 |..libraries that| 00000200 20 64 6f 20 74 68 65 20 6a 6f 62 20 76 65 72 79 | do the job very| 00000210 20 77 65 6c 6c 2c 20 74 77 6f 20 6f 66 20 74 68 | well, two of th| 00000220 65 73 65 20 62 65 69 6e 67 3a 0d 0d 20 20 20 20 |ese being:.. | 00000230 20 54 68 65 20 42 6f 6f 66 6f 6e 74 20 66 6f 6e | The Boofont fon| 00000240 74 20 64 65 73 69 67 6e 65 72 20 61 6e 64 20 74 |t designer and t| 00000250 68 65 0d 20 20 20 20 20 41 6e 64 72 65 77 20 50 |he. Andrew P| 00000260 65 70 70 65 72 65 6c 6c 20 66 6f 6e 74 20 64 65 |epperell font de| 00000270 73 69 67 6e 65 72 2e 20 0d 0d 42 6f 74 68 20 6f |signer. ..Both o| 00000280 66 20 74 68 65 73 65 20 64 65 73 69 67 6e 65 72 |f these designer| 00000290 73 20 77 6f 72 6b 20 6f 6e 20 74 68 65 20 42 42 |s work on the BB| 000002a0 43 20 62 75 74 20 6f 6e 6c 79 20 74 68 65 20 42 |C but only the B| 000002b0 6f 6f 66 6f 6e 74 20 0d 64 65 73 69 67 6e 65 72 |oofont .designer| 000002c0 10 77 6f 72 6b 73 20 6f 6e 20 74 68 65 20 65 6c |.works on the el| 000002d0 65 63 74 72 6f 6e 2e 0d 0d 4f 6e 63 65 20 61 20 |ectron...Once a | 000002e0 6e 65 77 20 66 6f 6e 74 20 68 61 73 20 62 65 65 |new font has bee| 000002f0 6e 20 63 72 65 61 74 65 64 20 61 6e 64 20 73 61 |n created and sa| 00000300 76 65 64 20 74 6f 20 64 69 73 63 2c 20 74 68 65 |ved to disc, the| 00000310 20 63 6f 64 65 20 0d 68 61 73 20 74 6f 20 62 65 | code .has to be| 00000320 10 63 6f 6e 76 65 72 74 65 64 20 66 6f 72 20 69 |.converted for i| 00000330 74 20 74 6f 20 62 65 20 75 73 61 62 6c 65 2e 20 |t to be usable. | 00000340 20 41 73 20 74 68 65 20 63 6f 64 65 20 66 6f 72 | As the code for| 00000350 20 65 61 63 68 20 0d 63 68 61 72 61 63 74 65 72 | each .character| 00000360 20 77 61 73 20 73 61 76 65 64 2c 10 74 68 65 20 | was saved,.the | 00000370 69 6e 64 69 76 69 64 75 61 6c 20 70 61 72 74 73 |individual parts| 00000380 20 77 65 72 65 20 6a 6f 69 6e 65 64 20 74 6f 67 | were joined tog| 00000390 65 74 68 65 72 20 0d 74 6f 20 66 6f 72 6d 20 6f |ether .to form o| 000003a0 6e 65 20 73 74 72 69 6e 67 20 6f 66 20 32 34 10 |ne string of 24.| 000003b0 62 79 74 65 73 2e 0d 0d 30 20 30 20 30 20 30 20 |bytes...0 0 0 0 | 000003c0 31 20 31 20 31 20 31 20 20 31 35 20 20 20 0d 30 |1 1 1 1 15 .0| 000003d0 20 30 20 30 20 30 20 31 20 30 20 30 20 31 20 20 | 0 0 0 1 0 0 1 | 000003e0 20 39 20 20 20 0d 30 20 30 20 30 20 31 20 30 20 | 9 .0 0 0 1 0 | 000003f0 30 20 31 20 30 20 20 31 38 20 20 20 20 0d 30 20 |0 1 0 18 .0 | 00000400 30 20 30 20 31 20 30 20 30 20 31 20 30 20 20 31 |0 0 1 0 0 1 0 1| 00000410 38 20 20 20 0d 30 20 30 20 31 20 31 20 31 20 31 |8 .0 0 1 1 1 1| 00000420 20 30 20 30 20 20 36 30 0d 30 20 30 20 31 20 30 | 0 0 60.0 0 1 0| 00000430 20 30 20 31 20 30 20 30 20 20 33 36 0d 30 20 31 | 0 1 0 0 36.0 1| 00000440 20 30 20 30 20 31 20 30 20 30 20 30 20 20 37 32 | 0 0 1 0 0 0 72| 00000450 0d 30 20 31 20 30 20 30 20 31 20 30 20 30 20 30 |.0 1 0 0 1 0 0 0| 00000460 20 20 37 32 0d 0d 49 66 20 74 68 65 20 63 68 61 | 72..If the cha| 00000470 72 61 63 74 65 72 20 69 73 20 64 65 66 69 6e 65 |racter is define| 00000480 64 20 61 73 20 61 62 6f 76 65 20 74 68 65 6e 20 |d as above then | 00000490 74 68 65 20 73 61 76 65 64 20 63 68 61 72 61 63 |the saved charac| 000004a0 74 65 72 20 0d 73 74 72 69 6e 67 20 69 73 3a 0d |ter .string is:.| 000004b0 30 31 35 30 30 39 30 31 38 30 31 38 30 36 30 30 |0150090180180600| 000004c0 33 36 30 37 32 30 37 32 0d 0d 54 68 65 20 63 6f |36072072..The co| 000004d0 6e 76 65 72 73 69 6f 6e 20 70 72 6f 67 72 61 6d |nversion program| 000004e0 20 69 73 20 73 75 70 70 6c 69 65 64 20 6f 6e 20 | is supplied on | 000004f0 74 68 65 20 64 69 73 63 20 77 69 74 68 20 74 68 |the disc with th| 00000500 65 20 10 0d 66 69 6c 65 6e 61 6d 65 22 43 6f 6e |e ..filename"Con| 00000510 76 65 72 74 22 20 77 68 69 63 68 20 74 61 6b 65 |vert" which take| 00000520 73 20 74 68 65 20 66 69 6c 65 20 61 73 20 6e 61 |s the file as na| 00000530 6d 65 64 20 69 6e 20 6c 69 6e 65 20 32 30 20 61 |med in line 20 a| 00000540 6e 64 20 10 0d 74 68 65 20 6e 61 6d 65 20 6f 66 |nd ..the name of| 00000550 20 74 68 65 20 63 6f 6e 76 65 72 74 65 64 20 66 | the converted f| 00000560 69 6c 65 20 69 6e 20 6c 69 6e 65 20 33 30 2e 20 |ile in line 30. | 00000570 20 54 68 65 20 63 6f 6e 76 65 72 74 69 6f 6e 20 | The convertion | 00000580 10 0d 74 61 6b 65 73 20 61 62 6f 75 74 20 34 35 |..takes about 45| 00000590 20 73 65 63 6f 6e 64 73 20 61 6e 64 20 6f 6e 63 | seconds and onc| 000005a0 65 20 63 6f 6e 76 65 72 74 65 64 20 74 68 65 20 |e converted the | 000005b0 66 6f 6e 74 20 66 69 6c 65 20 63 61 6e 20 62 65 |font file can be| 000005c0 20 10 0d 2a 52 55 4e 6e 65 64 2e 20 4f 6e 63 65 | ..*RUNned. Once| 000005d0 20 74 68 65 20 6e 65 77 20 66 6f 6e 74 20 69 73 | the new font is| 000005e0 20 69 6e 73 74 61 6c 6c 65 64 20 69 6e 20 6d 65 | installed in me| 000005f0 6d 6f 72 79 20 69 74 20 73 74 61 79 73 20 10 0d |mory it stays ..| 00000600 75 6e 74 69 6c 20 62 72 65 61 6b 20 69 73 20 70 |until break is p| 00000610 72 65 73 73 65 64 2e 0d 0d 49 66 20 79 6f 75 20 |ressed...If you | 00000620 77 69 73 68 20 74 6f 20 75 73 65 20 74 68 65 20 |wish to use the | 00000630 6e 65 77 20 66 6f 6e 74 73 20 6f 6e 20 74 68 65 |new fonts on the| 00000640 20 65 6c 65 63 74 72 6f 6e 2c 20 65 78 74 72 61 | electron, extra| 00000650 20 6d 65 6d 6f 72 79 20 10 0d 68 61 73 20 74 6f | memory ..has to| 00000660 20 62 65 20 73 65 74 20 61 73 69 64 65 20 66 6f | be set aside fo| 00000670 72 20 74 68 65 20 63 68 61 72 61 63 74 65 72 20 |r the character | 00000680 64 65 66 69 6e 69 74 69 6f 6e 73 2e 20 20 53 6f |definitions. So| 00000690 20 74 6f 20 10 0d 70 72 6f 70 65 72 6c 79 20 69 | to ..properly i| 000006a0 6e 73 74 61 6c 6c 20 74 68 65 20 6e 65 77 20 66 |nstall the new f| 000006b0 6f 6e 74 20 74 79 70 65 20 74 68 65 20 66 6f 6c |ont type the fol| 000006c0 6c 6f 77 69 6e 67 3a 0d 0d 20 20 20 20 20 20 20 |lowing:.. | 000006d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000006e0 20 2a 46 58 32 30 2c 36 0d 20 20 20 20 20 20 20 | *FX20,6. | 000006f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000700 20 2a 52 55 4e 20 66 6f 6e 74 6e 61 6d 65 0d 20 | *RUN fontname. | 00000710 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000720 20 20 20 20 20 20 20 50 41 47 45 20 3d 20 26 31 | PAGE = &1| 00000730 39 30 30 0d 0d 49 66 20 79 6f 75 20 63 68 6f 6f |900..If you choo| 00000740 73 65 20 74 6f 20 75 73 65 20 41 6e 64 72 65 77 |se to use Andrew| 00000750 20 50 65 70 70 65 72 65 6c 6c 73 20 66 6f 6e 74 | Pepperells font| 00000760 20 64 65 73 69 67 6e 65 72 2c 20 74 68 65 20 10 | designer, the .| 00000770 0d 6f 75 74 70 75 74 20 70 72 6f 64 75 63 65 64 |.output produced| 00000780 20 69 73 20 6f 66 20 61 20 64 69 66 66 65 72 65 | is of a differe| 00000790 6e 74 20 66 6f 72 6d 20 61 6e 64 20 62 65 63 61 |nt form and beca| 000007a0 75 73 65 20 6f 66 20 74 68 69 73 20 61 20 10 0d |use of this a ..| 000007b0 64 69 66 66 65 72 65 6e 74 20 63 6f 6e 76 65 72 |different conver| 000007c0 73 69 6f 6e 20 6d 65 74 68 6f 64 20 69 73 20 6e |sion method is n| 000007d0 65 65 64 65 64 2e 20 54 68 65 20 70 72 6f 67 72 |eeded. The progr| 000007e0 61 6d 20 22 43 6f 6e 76 65 72 74 32 22 20 10 0d |am "Convert2" ..| 000007f0 69 73 20 66 6f 72 20 75 73 65 20 77 69 74 68 20 |is for use with | 00000800 74 68 69 73 20 64 65 73 69 67 6e 65 72 20 61 6e |this designer an| 00000810 64 20 77 68 65 6e 20 63 6f 6e 76 65 72 74 65 64 |d when converted| 00000820 20 74 68 65 20 66 6f 6e 74 20 63 61 6e 20 10 0d | the font can ..| 00000830 62 65 20 75 73 65 64 20 61 73 20 62 65 66 6f 72 |be used as befor| 00000840 65 2e 0d 0d |e...| 00000844