Home » Personal collection » Acorn hard disk » apps » FontEd » !FontEd/Notes
!FontEd/Notes
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/Notes |
Read OK: | ✔ |
File size: | 1A34 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Operations on scaffold lines: 1 Use another character's scaffold lines as the base for the character 2 Create new local scaffold line 3 Create new global scaffold line, which will appear in all current descendants 4 Override an existing line with a new (local) definition - new definition can be thick, L-tangent, R-tangent 5 Take existing line and adjust its position 6 Associate a point/set of points with a scaffold line 7 Link one scaffold line to another 1: Right-drag character into skeleton window. The destination character inherits all scaffold lines from the source, losing any of its own in the process. This link is remembered, so that the lines actually reside in the source character, and any alterations made in either character will be reflected in the other. 2: Menu: scaffold.local.h/u/d/v/l/r creates a new local line of the appropriate type. The line is displayed in light blue rather than dark blue, to show that it originates in this character, rather than being inherited from another. No other character has the line in it initially, but right-dragging the character onto another will cause the new line to be inheritied along with all the others. 3: Menu: scaffold.global.h/u/d/v/l/r creates a new global line of the appropriate type. The difference between this and the previous operation is that the line is immediately inherited by any characters which depend on the current character (and on any which depend on them, and so on). The operation is only possible if there is a free line index which is not used in the current character or any of its descendants. 4: Select line to be overridden, then Menu: scaffold.replace.h/u/d/v/l/r. The existing line is replaced by the new one, and is used in any descendants of the character. 5: Drag line. All characters containing the line are redrawn, and any bitmaps which depend on the characters are also updated. 6: Select scaffold line, then click points to be altered. Alternatively drag a rectangle around the points and release. 7: Select scaffold line, then SHIFT-SELECT on the control point of another line. The second line is linked to the first. A 'linear' link can be set up by using CTRL-SELECT. Data Structures ------------- In character definition, 1 byte to indicate index into list of scaffold entries: Scaffold structure (just after font header): 1 byte: link onto next scaffold entry (base scaffold for this set) 1 byte: 8 bits indicating which x-scaffold entries are held in the base set 1 byte: 8 bits indicating which y-scaffold entries are held in the base set 1 byte: 8 bits indicating which x-scaffold entries are being overridden 1 byte: 8 bits indicating which y-scaffold entries are being overridden 3 bytes: 2-bytes: bits 0..11 = signed coordinate (lower one if this is a thick scaffold line) bits 12..14 = scaffold link index (0 if none) bit 15 = 'linear' link bit 1-byte unsigned thickness (if this is a thick line) 254 ==> this is an L-tangent line 255 ==> this is an R-tangent line The number of 3-byte entries following the initial 5-byte header depends on how may bits are set in bytes 3 and 4. Lines without a bit set in bytes 1,2 or 3,4 are deleted. With up to 16 local lines per char, max data size = (16*3+5)*192 = 10176 bytes! Problem: For a given character, work out where each of x[0..7] and y[0..7] scaffold lines are. Solution: Use bit arrays xb[0..7] and yb[0..7] initially all clear Set x[] and y[] for the local lines, setting the appropriate bits If not all bits are set, look up the definition for the 'base' character For all local lines in that, if the bit is clear, set the x[] or y[] line and set the bit Continue by taking that char's base char until all bits are set. So we need to be able to look up the set for a char relatively quickly In the editor ----------- For each character, x/ychar[0..7] = code of character containing the local definition of the line For the local lines, x/ycoord[0..7] = position of line x/ywidth[0..7] = width of line - only if x/ychar[] = this char code Thus when a line is dragged, all other characters containing that line can be updated too. (1) work out which char holds the local definition (2) update any displayed chars with that line also held in the same base char. The actual coordinate and width of the line are only stored in one place, since all others have a char code reference instead. When a char's definition is altered (or added to), any other chars which depend on that character also receive the results of the change. To avoid unpleasant surprises any deleted/undefined lines in the character are deemed to be deleted (local) lines in the new char, so if new lines are created in the old char, they do not suddenly appear in the new char. Note that when a char's scaffold set is dragged into another char, the latter's local scaffold lines are lost (since the line index numbers cannot be readily predicted). Also, any new lines added to the definition of the base char will not be seen in the new char (although alterations made to the existing set will affect both characters). Updates ------- Copying a char's set into another: x/ychar[] copied from the base char - except for deleted lines, where x/ychar[] = new char x/ycoord[] copied - &8000 ==> deleted x/ywidth[] copied - 254, 255 are special Creating a new scaffold line: If a line is selected, that is replaced by the new line If no line selected, a free index is seached for (ie. one whose line is currently deleted. If no more free lines are available, error message tells you to select a line you don't need. The new line is always local to the character. Dragging a scaffold line: New lines can ONLY affect the character to which they belong - if the line did not previously exist, then any chars using that as a base will have a LOCAL deleted line instead. So when dragging a line one must search for chars in the font which have a reference to the line, and update them - those which are displayed will be updated immediately, while the others are done when the line is dropped. Loading/saving the font file The scaffold lines are packed and unpacked as required - after the first unpacking (when the file is first loaded) the unpacked form is treated as the master definition, but the packed form is left lying around in the file for convenience when saving.
00000000 4f 70 65 72 61 74 69 6f 6e 73 20 6f 6e 20 73 63 |Operations on sc| 00000010 61 66 66 6f 6c 64 20 6c 69 6e 65 73 3a 0a 0a 31 |affold lines:..1| 00000020 20 20 55 73 65 20 61 6e 6f 74 68 65 72 20 63 68 | Use another ch| 00000030 61 72 61 63 74 65 72 27 73 20 73 63 61 66 66 6f |aracter's scaffo| 00000040 6c 64 20 6c 69 6e 65 73 20 61 73 20 74 68 65 20 |ld lines as the | 00000050 62 61 73 65 20 66 6f 72 20 74 68 65 20 63 68 61 |base for the cha| 00000060 72 61 63 74 65 72 0a 32 20 20 43 72 65 61 74 65 |racter.2 Create| 00000070 20 6e 65 77 20 6c 6f 63 61 6c 20 73 63 61 66 66 | new local scaff| 00000080 6f 6c 64 20 6c 69 6e 65 0a 33 20 20 43 72 65 61 |old line.3 Crea| 00000090 74 65 20 6e 65 77 20 67 6c 6f 62 61 6c 20 73 63 |te new global sc| 000000a0 61 66 66 6f 6c 64 20 6c 69 6e 65 2c 20 77 68 69 |affold line, whi| 000000b0 63 68 20 77 69 6c 6c 20 61 70 70 65 61 72 20 69 |ch will appear i| 000000c0 6e 20 61 6c 6c 20 63 75 72 72 65 6e 74 20 64 65 |n all current de| 000000d0 73 63 65 6e 64 61 6e 74 73 0a 34 20 20 4f 76 65 |scendants.4 Ove| 000000e0 72 72 69 64 65 20 61 6e 20 65 78 69 73 74 69 6e |rride an existin| 000000f0 67 20 6c 69 6e 65 20 77 69 74 68 20 61 20 6e 65 |g line with a ne| 00000100 77 20 28 6c 6f 63 61 6c 29 20 64 65 66 69 6e 69 |w (local) defini| 00000110 74 69 6f 6e 0a 20 20 20 20 20 20 20 2d 20 6e 65 |tion. - ne| 00000120 77 20 64 65 66 69 6e 69 74 69 6f 6e 20 63 61 6e |w definition can| 00000130 20 62 65 20 74 68 69 63 6b 2c 20 4c 2d 74 61 6e | be thick, L-tan| 00000140 67 65 6e 74 2c 20 52 2d 74 61 6e 67 65 6e 74 0a |gent, R-tangent.| 00000150 35 20 20 54 61 6b 65 20 65 78 69 73 74 69 6e 67 |5 Take existing| 00000160 20 6c 69 6e 65 20 61 6e 64 20 61 64 6a 75 73 74 | line and adjust| 00000170 20 69 74 73 20 70 6f 73 69 74 69 6f 6e 0a 36 20 | its position.6 | 00000180 20 41 73 73 6f 63 69 61 74 65 20 61 20 70 6f 69 | Associate a poi| 00000190 6e 74 2f 73 65 74 20 6f 66 20 70 6f 69 6e 74 73 |nt/set of points| 000001a0 20 77 69 74 68 20 61 20 73 63 61 66 66 6f 6c 64 | with a scaffold| 000001b0 20 6c 69 6e 65 0a 37 20 20 4c 69 6e 6b 20 6f 6e | line.7 Link on| 000001c0 65 20 73 63 61 66 66 6f 6c 64 20 6c 69 6e 65 20 |e scaffold line | 000001d0 74 6f 20 61 6e 6f 74 68 65 72 0a 0a 31 3a 20 52 |to another..1: R| 000001e0 69 67 68 74 2d 64 72 61 67 20 63 68 61 72 61 63 |ight-drag charac| 000001f0 74 65 72 20 69 6e 74 6f 20 73 6b 65 6c 65 74 6f |ter into skeleto| 00000200 6e 20 77 69 6e 64 6f 77 2e 0a 20 20 20 20 54 68 |n window.. Th| 00000210 65 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 63 68 |e destination ch| 00000220 61 72 61 63 74 65 72 20 69 6e 68 65 72 69 74 73 |aracter inherits| 00000230 20 61 6c 6c 20 73 63 61 66 66 6f 6c 64 20 6c 69 | all scaffold li| 00000240 6e 65 73 20 66 72 6f 6d 20 74 68 65 20 73 6f 75 |nes from the sou| 00000250 72 63 65 2c 0a 20 20 20 20 6c 6f 73 69 6e 67 20 |rce,. losing | 00000260 61 6e 79 20 6f 66 20 69 74 73 20 6f 77 6e 20 69 |any of its own i| 00000270 6e 20 74 68 65 20 70 72 6f 63 65 73 73 2e 20 20 |n the process. | 00000280 54 68 69 73 20 6c 69 6e 6b 20 69 73 20 72 65 6d |This link is rem| 00000290 65 6d 62 65 72 65 64 2c 20 73 6f 20 74 68 61 74 |embered, so that| 000002a0 0a 20 20 20 20 74 68 65 20 6c 69 6e 65 73 20 61 |. the lines a| 000002b0 63 74 75 61 6c 6c 79 20 72 65 73 69 64 65 20 69 |ctually reside i| 000002c0 6e 20 74 68 65 20 73 6f 75 72 63 65 20 63 68 61 |n the source cha| 000002d0 72 61 63 74 65 72 2c 20 61 6e 64 20 61 6e 79 20 |racter, and any | 000002e0 61 6c 74 65 72 61 74 69 6f 6e 73 20 6d 61 64 65 |alterations made| 000002f0 0a 20 20 20 20 69 6e 20 65 69 74 68 65 72 20 63 |. in either c| 00000300 68 61 72 61 63 74 65 72 20 77 69 6c 6c 20 62 65 |haracter will be| 00000310 20 72 65 66 6c 65 63 74 65 64 20 69 6e 20 74 68 | reflected in th| 00000320 65 20 6f 74 68 65 72 2e 0a 0a 32 3a 20 4d 65 6e |e other...2: Men| 00000330 75 3a 20 73 63 61 66 66 6f 6c 64 2e 6c 6f 63 61 |u: scaffold.loca| 00000340 6c 2e 68 2f 75 2f 64 2f 76 2f 6c 2f 72 20 63 72 |l.h/u/d/v/l/r cr| 00000350 65 61 74 65 73 20 61 20 6e 65 77 20 6c 6f 63 61 |eates a new loca| 00000360 6c 20 6c 69 6e 65 20 6f 66 20 74 68 65 0a 20 20 |l line of the. | 00000370 20 20 61 70 70 72 6f 70 72 69 61 74 65 20 74 79 | appropriate ty| 00000380 70 65 2e 20 20 54 68 65 20 6c 69 6e 65 20 69 73 |pe. The line is| 00000390 20 64 69 73 70 6c 61 79 65 64 20 69 6e 20 6c 69 | displayed in li| 000003a0 67 68 74 20 62 6c 75 65 20 72 61 74 68 65 72 20 |ght blue rather | 000003b0 74 68 61 6e 20 64 61 72 6b 0a 20 20 20 20 62 6c |than dark. bl| 000003c0 75 65 2c 20 74 6f 20 73 68 6f 77 20 74 68 61 74 |ue, to show that| 000003d0 20 69 74 20 6f 72 69 67 69 6e 61 74 65 73 20 69 | it originates i| 000003e0 6e 20 74 68 69 73 20 63 68 61 72 61 63 74 65 72 |n this character| 000003f0 2c 20 72 61 74 68 65 72 20 74 68 61 6e 20 62 65 |, rather than be| 00000400 69 6e 67 0a 20 20 20 20 69 6e 68 65 72 69 74 65 |ing. inherite| 00000410 64 20 66 72 6f 6d 20 61 6e 6f 74 68 65 72 2e 20 |d from another. | 00000420 20 4e 6f 20 6f 74 68 65 72 20 63 68 61 72 61 63 | No other charac| 00000430 74 65 72 20 68 61 73 20 74 68 65 20 6c 69 6e 65 |ter has the line| 00000440 20 69 6e 20 69 74 20 69 6e 69 74 69 61 6c 6c 79 | in it initially| 00000450 2c 0a 20 20 20 20 62 75 74 20 72 69 67 68 74 2d |,. but right-| 00000460 64 72 61 67 67 69 6e 67 20 74 68 65 20 63 68 61 |dragging the cha| 00000470 72 61 63 74 65 72 20 6f 6e 74 6f 20 61 6e 6f 74 |racter onto anot| 00000480 68 65 72 20 77 69 6c 6c 20 63 61 75 73 65 20 74 |her will cause t| 00000490 68 65 20 6e 65 77 20 6c 69 6e 65 20 74 6f 20 62 |he new line to b| 000004a0 65 0a 20 20 20 20 69 6e 68 65 72 69 74 69 65 64 |e. inheritied| 000004b0 20 61 6c 6f 6e 67 20 77 69 74 68 20 61 6c 6c 20 | along with all | 000004c0 74 68 65 20 6f 74 68 65 72 73 2e 0a 0a 33 3a 20 |the others...3: | 000004d0 4d 65 6e 75 3a 20 73 63 61 66 66 6f 6c 64 2e 67 |Menu: scaffold.g| 000004e0 6c 6f 62 61 6c 2e 68 2f 75 2f 64 2f 76 2f 6c 2f |lobal.h/u/d/v/l/| 000004f0 72 20 63 72 65 61 74 65 73 20 61 20 6e 65 77 20 |r creates a new | 00000500 67 6c 6f 62 61 6c 20 6c 69 6e 65 20 6f 66 20 74 |global line of t| 00000510 68 65 0a 20 20 20 20 61 70 70 72 6f 70 72 69 61 |he. appropria| 00000520 74 65 20 74 79 70 65 2e 20 20 54 68 65 20 64 69 |te type. The di| 00000530 66 66 65 72 65 6e 63 65 20 62 65 74 77 65 65 6e |fference between| 00000540 20 74 68 69 73 20 61 6e 64 20 74 68 65 20 70 72 | this and the pr| 00000550 65 76 69 6f 75 73 20 6f 70 65 72 61 74 69 6f 6e |evious operation| 00000560 20 69 73 0a 20 20 20 20 74 68 61 74 20 74 68 65 | is. that the| 00000570 20 6c 69 6e 65 20 69 73 20 69 6d 6d 65 64 69 61 | line is immedia| 00000580 74 65 6c 79 20 69 6e 68 65 72 69 74 65 64 20 62 |tely inherited b| 00000590 79 20 61 6e 79 20 63 68 61 72 61 63 74 65 72 73 |y any characters| 000005a0 20 77 68 69 63 68 20 64 65 70 65 6e 64 20 6f 6e | which depend on| 000005b0 20 74 68 65 0a 20 20 20 20 63 75 72 72 65 6e 74 | the. current| 000005c0 20 63 68 61 72 61 63 74 65 72 20 28 61 6e 64 20 | character (and | 000005d0 6f 6e 20 61 6e 79 20 77 68 69 63 68 20 64 65 70 |on any which dep| 000005e0 65 6e 64 20 6f 6e 20 74 68 65 6d 2c 20 61 6e 64 |end on them, and| 000005f0 20 73 6f 20 6f 6e 29 2e 20 20 54 68 65 0a 20 20 | so on). The. | 00000600 20 20 6f 70 65 72 61 74 69 6f 6e 20 69 73 20 6f | operation is o| 00000610 6e 6c 79 20 70 6f 73 73 69 62 6c 65 20 69 66 20 |nly possible if | 00000620 74 68 65 72 65 20 69 73 20 61 20 66 72 65 65 20 |there is a free | 00000630 6c 69 6e 65 20 69 6e 64 65 78 20 77 68 69 63 68 |line index which| 00000640 20 69 73 20 6e 6f 74 20 75 73 65 64 0a 20 20 20 | is not used. | 00000650 20 20 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 | in the current| 00000660 20 63 68 61 72 61 63 74 65 72 20 6f 72 20 61 6e | character or an| 00000670 79 20 6f 66 20 69 74 73 20 64 65 73 63 65 6e 64 |y of its descend| 00000680 61 6e 74 73 2e 0a 0a 34 3a 20 53 65 6c 65 63 74 |ants...4: Select| 00000690 20 6c 69 6e 65 20 74 6f 20 62 65 20 6f 76 65 72 | line to be over| 000006a0 72 69 64 64 65 6e 2c 20 74 68 65 6e 20 4d 65 6e |ridden, then Men| 000006b0 75 3a 20 73 63 61 66 66 6f 6c 64 2e 72 65 70 6c |u: scaffold.repl| 000006c0 61 63 65 2e 68 2f 75 2f 64 2f 76 2f 6c 2f 72 2e |ace.h/u/d/v/l/r.| 000006d0 0a 20 20 20 54 68 65 20 65 78 69 73 74 69 6e 67 |. The existing| 000006e0 20 6c 69 6e 65 20 69 73 20 72 65 70 6c 61 63 65 | line is replace| 000006f0 64 20 62 79 20 74 68 65 20 6e 65 77 20 6f 6e 65 |d by the new one| 00000700 2c 20 61 6e 64 20 69 73 20 75 73 65 64 20 69 6e |, and is used in| 00000710 20 61 6e 79 20 64 65 73 63 65 6e 64 61 6e 74 73 | any descendants| 00000720 20 6f 66 20 74 68 65 20 63 68 61 72 61 63 74 65 | of the characte| 00000730 72 2e 0a 0a 35 3a 20 44 72 61 67 20 6c 69 6e 65 |r...5: Drag line| 00000740 2e 0a 20 20 20 20 41 6c 6c 20 63 68 61 72 61 63 |.. All charac| 00000750 74 65 72 73 20 63 6f 6e 74 61 69 6e 69 6e 67 20 |ters containing | 00000760 74 68 65 20 6c 69 6e 65 20 61 72 65 20 72 65 64 |the line are red| 00000770 72 61 77 6e 2c 20 61 6e 64 20 61 6e 79 20 62 69 |rawn, and any bi| 00000780 74 6d 61 70 73 20 77 68 69 63 68 0a 20 20 20 20 |tmaps which. | 00000790 64 65 70 65 6e 64 20 6f 6e 20 74 68 65 20 63 68 |depend on the ch| 000007a0 61 72 61 63 74 65 72 73 20 61 72 65 20 61 6c 73 |aracters are als| 000007b0 6f 20 75 70 64 61 74 65 64 2e 0a 0a 36 3a 20 53 |o updated...6: S| 000007c0 65 6c 65 63 74 20 73 63 61 66 66 6f 6c 64 20 6c |elect scaffold l| 000007d0 69 6e 65 2c 20 74 68 65 6e 20 63 6c 69 63 6b 20 |ine, then click | 000007e0 70 6f 69 6e 74 73 20 74 6f 20 62 65 20 61 6c 74 |points to be alt| 000007f0 65 72 65 64 2e 0a 20 20 20 41 6c 74 65 72 6e 61 |ered.. Alterna| 00000800 74 69 76 65 6c 79 20 64 72 61 67 20 61 20 72 65 |tively drag a re| 00000810 63 74 61 6e 67 6c 65 20 61 72 6f 75 6e 64 20 74 |ctangle around t| 00000820 68 65 20 70 6f 69 6e 74 73 20 61 6e 64 20 72 65 |he points and re| 00000830 6c 65 61 73 65 2e 0a 0a 37 3a 20 53 65 6c 65 63 |lease...7: Selec| 00000840 74 20 73 63 61 66 66 6f 6c 64 20 6c 69 6e 65 2c |t scaffold line,| 00000850 20 74 68 65 6e 20 53 48 49 46 54 2d 53 45 4c 45 | then SHIFT-SELE| 00000860 43 54 20 6f 6e 20 74 68 65 20 63 6f 6e 74 72 6f |CT on the contro| 00000870 6c 20 70 6f 69 6e 74 20 6f 66 20 61 6e 6f 74 68 |l point of anoth| 00000880 65 72 20 6c 69 6e 65 2e 0a 20 20 20 54 68 65 20 |er line.. The | 00000890 73 65 63 6f 6e 64 20 6c 69 6e 65 20 69 73 20 6c |second line is l| 000008a0 69 6e 6b 65 64 20 74 6f 20 74 68 65 20 66 69 72 |inked to the fir| 000008b0 73 74 2e 20 20 41 20 27 6c 69 6e 65 61 72 27 20 |st. A 'linear' | 000008c0 6c 69 6e 6b 20 63 61 6e 20 62 65 20 73 65 74 20 |link can be set | 000008d0 75 70 20 62 79 20 75 73 69 6e 67 20 43 54 52 4c |up by using CTRL| 000008e0 2d 53 45 4c 45 43 54 2e 0a 0a 0a 44 61 74 61 20 |-SELECT....Data | 000008f0 53 74 72 75 63 74 75 72 65 73 0a 2d 2d 2d 2d 2d |Structures.-----| 00000900 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 20 20 20 20 20 20 |--------.. | 00000910 49 6e 20 63 68 61 72 61 63 74 65 72 20 64 65 66 |In character def| 00000920 69 6e 69 74 69 6f 6e 2c 20 31 20 62 79 74 65 20 |inition, 1 byte | 00000930 74 6f 20 69 6e 64 69 63 61 74 65 20 69 6e 64 65 |to indicate inde| 00000940 78 20 69 6e 74 6f 20 6c 69 73 74 20 6f 66 20 73 |x into list of s| 00000950 63 61 66 66 6f 6c 64 20 65 6e 74 72 69 65 73 3a |caffold entries:| 00000960 0a 0a 53 63 61 66 66 6f 6c 64 20 73 74 72 75 63 |..Scaffold struc| 00000970 74 75 72 65 20 28 6a 75 73 74 20 61 66 74 65 72 |ture (just after| 00000980 20 66 6f 6e 74 20 68 65 61 64 65 72 29 3a 0a 0a | font header):..| 00000990 20 20 20 20 20 20 31 20 62 79 74 65 3a 20 6c 69 | 1 byte: li| 000009a0 6e 6b 20 6f 6e 74 6f 20 6e 65 78 74 20 73 63 61 |nk onto next sca| 000009b0 66 66 6f 6c 64 20 65 6e 74 72 79 20 28 62 61 73 |ffold entry (bas| 000009c0 65 20 73 63 61 66 66 6f 6c 64 20 66 6f 72 20 74 |e scaffold for t| 000009d0 68 69 73 20 73 65 74 29 0a 20 20 20 20 20 20 31 |his set). 1| 000009e0 20 62 79 74 65 3a 20 38 20 62 69 74 73 20 69 6e | byte: 8 bits in| 000009f0 64 69 63 61 74 69 6e 67 20 77 68 69 63 68 20 78 |dicating which x| 00000a00 2d 73 63 61 66 66 6f 6c 64 20 65 6e 74 72 69 65 |-scaffold entrie| 00000a10 73 20 61 72 65 20 68 65 6c 64 20 69 6e 20 74 68 |s are held in th| 00000a20 65 20 62 61 73 65 20 73 65 74 0a 20 20 20 20 20 |e base set. | 00000a30 20 31 20 62 79 74 65 3a 20 38 20 62 69 74 73 20 | 1 byte: 8 bits | 00000a40 69 6e 64 69 63 61 74 69 6e 67 20 77 68 69 63 68 |indicating which| 00000a50 20 79 2d 73 63 61 66 66 6f 6c 64 20 65 6e 74 72 | y-scaffold entr| 00000a60 69 65 73 20 61 72 65 20 68 65 6c 64 20 69 6e 20 |ies are held in | 00000a70 74 68 65 20 62 61 73 65 20 73 65 74 0a 20 20 20 |the base set. | 00000a80 20 20 20 31 20 62 79 74 65 3a 20 38 20 62 69 74 | 1 byte: 8 bit| 00000a90 73 20 69 6e 64 69 63 61 74 69 6e 67 20 77 68 69 |s indicating whi| 00000aa0 63 68 20 78 2d 73 63 61 66 66 6f 6c 64 20 65 6e |ch x-scaffold en| 00000ab0 74 72 69 65 73 20 61 72 65 20 62 65 69 6e 67 20 |tries are being | 00000ac0 6f 76 65 72 72 69 64 64 65 6e 0a 20 20 20 20 20 |overridden. | 00000ad0 20 31 20 62 79 74 65 3a 20 38 20 62 69 74 73 20 | 1 byte: 8 bits | 00000ae0 69 6e 64 69 63 61 74 69 6e 67 20 77 68 69 63 68 |indicating which| 00000af0 20 79 2d 73 63 61 66 66 6f 6c 64 20 65 6e 74 72 | y-scaffold entr| 00000b00 69 65 73 20 61 72 65 20 62 65 69 6e 67 20 6f 76 |ies are being ov| 00000b10 65 72 72 69 64 64 65 6e 0a 20 20 20 20 20 20 33 |erridden. 3| 00000b20 20 62 79 74 65 73 3a 20 32 2d 62 79 74 65 73 3a | bytes: 2-bytes:| 00000b30 20 62 69 74 73 20 30 2e 2e 31 31 20 3d 20 73 69 | bits 0..11 = si| 00000b40 67 6e 65 64 20 63 6f 6f 72 64 69 6e 61 74 65 20 |gned coordinate | 00000b50 28 6c 6f 77 65 72 20 6f 6e 65 20 69 66 20 74 68 |(lower one if th| 00000b60 69 73 20 69 73 20 61 20 74 68 69 63 6b 20 73 63 |is is a thick sc| 00000b70 61 66 66 6f 6c 64 20 6c 69 6e 65 29 0a 20 20 20 |affold line). | 00000b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000b90 20 20 20 20 20 20 20 20 20 20 20 62 69 74 73 20 | bits | 00000ba0 31 32 2e 2e 31 34 20 3d 20 73 63 61 66 66 6f 6c |12..14 = scaffol| 00000bb0 64 20 6c 69 6e 6b 20 69 6e 64 65 78 20 28 30 20 |d link index (0 | 00000bc0 69 66 20 6e 6f 6e 65 29 0a 20 20 20 20 20 20 20 |if none). | 00000bd0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000be0 20 20 20 20 20 20 20 62 69 74 20 31 35 20 3d 20 | bit 15 = | 00000bf0 27 6c 69 6e 65 61 72 27 20 6c 69 6e 6b 20 62 69 |'linear' link bi| 00000c00 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |t. | 00000c10 20 20 20 20 31 2d 62 79 74 65 20 75 6e 73 69 67 | 1-byte unsig| 00000c20 6e 65 64 20 74 68 69 63 6b 6e 65 73 73 20 28 69 |ned thickness (i| 00000c30 66 20 74 68 69 73 20 69 73 20 61 20 74 68 69 63 |f this is a thic| 00000c40 6b 20 6c 69 6e 65 29 0a 20 20 20 20 20 20 20 20 |k line). | 00000c50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000c60 20 20 20 20 32 35 34 20 3d 3d 3e 20 74 68 69 73 | 254 ==> this| 00000c70 20 69 73 20 61 6e 20 4c 2d 74 61 6e 67 65 6e 74 | is an L-tangent| 00000c80 20 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 20 20 | line. | 00000c90 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000ca0 20 20 32 35 35 20 3d 3d 3e 20 74 68 69 73 20 69 | 255 ==> this i| 00000cb0 73 20 61 6e 20 52 2d 74 61 6e 67 65 6e 74 20 6c |s an R-tangent l| 00000cc0 69 6e 65 0a 0a 54 68 65 20 6e 75 6d 62 65 72 20 |ine..The number | 00000cd0 6f 66 20 33 2d 62 79 74 65 20 65 6e 74 72 69 65 |of 3-byte entrie| 00000ce0 73 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 68 65 20 |s following the | 00000cf0 69 6e 69 74 69 61 6c 20 35 2d 62 79 74 65 20 68 |initial 5-byte h| 00000d00 65 61 64 65 72 20 64 65 70 65 6e 64 73 20 6f 6e |eader depends on| 00000d10 0a 68 6f 77 20 6d 61 79 20 62 69 74 73 20 61 72 |.how may bits ar| 00000d20 65 20 73 65 74 20 69 6e 20 62 79 74 65 73 20 33 |e set in bytes 3| 00000d30 20 61 6e 64 20 34 2e 20 20 4c 69 6e 65 73 20 77 | and 4. Lines w| 00000d40 69 74 68 6f 75 74 20 61 20 62 69 74 20 73 65 74 |ithout a bit set| 00000d50 20 69 6e 20 62 79 74 65 73 20 31 2c 32 0a 6f 72 | in bytes 1,2.or| 00000d60 20 33 2c 34 20 61 72 65 20 64 65 6c 65 74 65 64 | 3,4 are deleted| 00000d70 2e 0a 0a 57 69 74 68 20 75 70 20 74 6f 20 31 36 |...With up to 16| 00000d80 20 6c 6f 63 61 6c 20 6c 69 6e 65 73 20 70 65 72 | local lines per| 00000d90 20 63 68 61 72 2c 20 6d 61 78 20 64 61 74 61 20 | char, max data | 00000da0 73 69 7a 65 20 3d 20 28 31 36 2a 33 2b 35 29 2a |size = (16*3+5)*| 00000db0 31 39 32 20 3d 20 31 30 31 37 36 20 62 79 74 65 |192 = 10176 byte| 00000dc0 73 21 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 |s!.. | 00000dd0 20 20 20 20 0a 50 72 6f 62 6c 65 6d 3a 0a 0a 46 | .Problem:..F| 00000de0 6f 72 20 61 20 67 69 76 65 6e 20 63 68 61 72 61 |or a given chara| 00000df0 63 74 65 72 2c 20 77 6f 72 6b 20 6f 75 74 20 77 |cter, work out w| 00000e00 68 65 72 65 20 65 61 63 68 20 6f 66 20 78 5b 30 |here each of x[0| 00000e10 2e 2e 37 5d 20 61 6e 64 20 79 5b 30 2e 2e 37 5d |..7] and y[0..7]| 00000e20 20 73 63 61 66 66 6f 6c 64 20 6c 69 6e 65 73 20 | scaffold lines | 00000e30 61 72 65 2e 0a 0a 53 6f 6c 75 74 69 6f 6e 3a 0a |are...Solution:.| 00000e40 0a 20 20 20 20 20 20 20 55 73 65 20 62 69 74 20 |. Use bit | 00000e50 61 72 72 61 79 73 20 78 62 5b 30 2e 2e 37 5d 20 |arrays xb[0..7] | 00000e60 61 6e 64 20 79 62 5b 30 2e 2e 37 5d 20 69 6e 69 |and yb[0..7] ini| 00000e70 74 69 61 6c 6c 79 20 61 6c 6c 20 63 6c 65 61 72 |tially all clear| 00000e80 0a 20 20 20 20 20 20 20 53 65 74 20 78 5b 5d 20 |. Set x[] | 00000e90 61 6e 64 20 79 5b 5d 20 66 6f 72 20 74 68 65 20 |and y[] for the | 00000ea0 6c 6f 63 61 6c 20 6c 69 6e 65 73 2c 20 73 65 74 |local lines, set| 00000eb0 74 69 6e 67 20 74 68 65 20 61 70 70 72 6f 70 72 |ting the appropr| 00000ec0 69 61 74 65 20 62 69 74 73 0a 20 20 20 20 20 20 |iate bits. | 00000ed0 20 49 66 20 6e 6f 74 20 61 6c 6c 20 62 69 74 73 | If not all bits| 00000ee0 20 61 72 65 20 73 65 74 2c 20 6c 6f 6f 6b 20 75 | are set, look u| 00000ef0 70 20 74 68 65 20 64 65 66 69 6e 69 74 69 6f 6e |p the definition| 00000f00 20 66 6f 72 20 74 68 65 20 27 62 61 73 65 27 20 | for the 'base' | 00000f10 63 68 61 72 61 63 74 65 72 0a 20 20 20 20 20 20 |character. | 00000f20 20 46 6f 72 20 61 6c 6c 20 6c 6f 63 61 6c 20 6c | For all local l| 00000f30 69 6e 65 73 20 69 6e 20 74 68 61 74 2c 20 69 66 |ines in that, if| 00000f40 20 74 68 65 20 62 69 74 20 69 73 20 63 6c 65 61 | the bit is clea| 00000f50 72 2c 20 73 65 74 20 74 68 65 20 78 5b 5d 20 6f |r, set the x[] o| 00000f60 72 20 79 5b 5d 20 6c 69 6e 65 20 61 6e 64 20 73 |r y[] line and s| 00000f70 65 74 20 74 68 65 20 62 69 74 0a 20 20 20 20 20 |et the bit. | 00000f80 20 20 43 6f 6e 74 69 6e 75 65 20 62 79 20 74 61 | Continue by ta| 00000f90 6b 69 6e 67 20 74 68 61 74 20 63 68 61 72 27 73 |king that char's| 00000fa0 20 62 61 73 65 20 63 68 61 72 20 75 6e 74 69 6c | base char until| 00000fb0 20 61 6c 6c 20 62 69 74 73 20 61 72 65 20 73 65 | all bits are se| 00000fc0 74 2e 0a 0a 53 6f 20 77 65 20 6e 65 65 64 20 74 |t...So we need t| 00000fd0 6f 20 62 65 20 61 62 6c 65 20 74 6f 20 6c 6f 6f |o be able to loo| 00000fe0 6b 20 75 70 20 74 68 65 20 73 65 74 20 66 6f 72 |k up the set for| 00000ff0 20 61 20 63 68 61 72 20 72 65 6c 61 74 69 76 65 | a char relative| 00001000 6c 79 20 71 75 69 63 6b 6c 79 20 0a 0a 49 6e 20 |ly quickly ..In | 00001010 74 68 65 20 65 64 69 74 6f 72 0a 2d 2d 2d 2d 2d |the editor.-----| 00001020 2d 2d 2d 2d 2d 2d 0a 0a 46 6f 72 20 65 61 63 68 |------..For each| 00001030 20 63 68 61 72 61 63 74 65 72 2c 20 78 2f 79 63 | character, x/yc| 00001040 68 61 72 5b 30 2e 2e 37 5d 20 3d 20 63 6f 64 65 |har[0..7] = code| 00001050 20 6f 66 20 63 68 61 72 61 63 74 65 72 20 63 6f | of character co| 00001060 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 6c 6f 63 |ntaining the loc| 00001070 61 6c 20 64 65 66 69 6e 69 74 69 6f 6e 20 6f 66 |al definition of| 00001080 20 74 68 65 20 6c 69 6e 65 0a 46 6f 72 20 74 68 | the line.For th| 00001090 65 20 6c 6f 63 61 6c 20 6c 69 6e 65 73 2c 20 78 |e local lines, x| 000010a0 2f 79 63 6f 6f 72 64 5b 30 2e 2e 37 5d 20 3d 20 |/ycoord[0..7] = | 000010b0 70 6f 73 69 74 69 6f 6e 20 6f 66 20 6c 69 6e 65 |position of line| 000010c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 000010d0 20 20 20 20 20 20 20 20 20 20 20 20 78 2f 79 77 | x/yw| 000010e0 69 64 74 68 5b 30 2e 2e 37 5d 20 3d 20 77 69 64 |idth[0..7] = wid| 000010f0 74 68 20 6f 66 20 6c 69 6e 65 20 20 2d 20 6f 6e |th of line - on| 00001100 6c 79 20 69 66 20 78 2f 79 63 68 61 72 5b 5d 20 |ly if x/ychar[] | 00001110 3d 20 74 68 69 73 20 63 68 61 72 20 63 6f 64 65 |= this char code| 00001120 0a 0a 54 68 75 73 20 77 68 65 6e 20 61 20 6c 69 |..Thus when a li| 00001130 6e 65 20 69 73 20 64 72 61 67 67 65 64 2c 20 61 |ne is dragged, a| 00001140 6c 6c 20 6f 74 68 65 72 20 63 68 61 72 61 63 74 |ll other charact| 00001150 65 72 73 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 |ers containing t| 00001160 68 61 74 20 6c 69 6e 65 20 63 61 6e 20 62 65 20 |hat line can be | 00001170 75 70 64 61 74 65 64 20 74 6f 6f 2e 0a 20 20 20 |updated too.. | 00001180 20 28 31 29 20 77 6f 72 6b 20 6f 75 74 20 77 68 | (1) work out wh| 00001190 69 63 68 20 63 68 61 72 20 68 6f 6c 64 73 20 74 |ich char holds t| 000011a0 68 65 20 6c 6f 63 61 6c 20 64 65 66 69 6e 69 74 |he local definit| 000011b0 69 6f 6e 0a 20 20 20 20 28 32 29 20 75 70 64 61 |ion. (2) upda| 000011c0 74 65 20 61 6e 79 20 64 69 73 70 6c 61 79 65 64 |te any displayed| 000011d0 20 63 68 61 72 73 20 77 69 74 68 20 74 68 61 74 | chars with that| 000011e0 20 6c 69 6e 65 20 61 6c 73 6f 20 68 65 6c 64 20 | line also held | 000011f0 69 6e 20 74 68 65 20 73 61 6d 65 20 62 61 73 65 |in the same base| 00001200 20 63 68 61 72 2e 0a 0a 54 68 65 20 61 63 74 75 | char...The actu| 00001210 61 6c 20 63 6f 6f 72 64 69 6e 61 74 65 20 61 6e |al coordinate an| 00001220 64 20 77 69 64 74 68 20 6f 66 20 74 68 65 20 6c |d width of the l| 00001230 69 6e 65 20 61 72 65 20 6f 6e 6c 79 20 73 74 6f |ine are only sto| 00001240 72 65 64 20 69 6e 20 6f 6e 65 20 70 6c 61 63 65 |red in one place| 00001250 2c 0a 73 69 6e 63 65 20 61 6c 6c 20 6f 74 68 65 |,.since all othe| 00001260 72 73 20 68 61 76 65 20 61 20 63 68 61 72 20 63 |rs have a char c| 00001270 6f 64 65 20 72 65 66 65 72 65 6e 63 65 20 69 6e |ode reference in| 00001280 73 74 65 61 64 2e 0a 0a 57 68 65 6e 20 61 20 63 |stead...When a c| 00001290 68 61 72 27 73 20 64 65 66 69 6e 69 74 69 6f 6e |har's definition| 000012a0 20 69 73 20 61 6c 74 65 72 65 64 20 28 6f 72 20 | is altered (or | 000012b0 61 64 64 65 64 20 74 6f 29 2c 20 61 6e 79 20 6f |added to), any o| 000012c0 74 68 65 72 20 63 68 61 72 73 20 77 68 69 63 68 |ther chars which| 000012d0 0a 64 65 70 65 6e 64 20 6f 6e 20 74 68 61 74 20 |.depend on that | 000012e0 63 68 61 72 61 63 74 65 72 20 61 6c 73 6f 20 72 |character also r| 000012f0 65 63 65 69 76 65 20 74 68 65 20 72 65 73 75 6c |eceive the resul| 00001300 74 73 20 6f 66 20 74 68 65 20 63 68 61 6e 67 65 |ts of the change| 00001310 2e 20 20 54 6f 20 61 76 6f 69 64 0a 75 6e 70 6c |. To avoid.unpl| 00001320 65 61 73 61 6e 74 20 73 75 72 70 72 69 73 65 73 |easant surprises| 00001330 20 61 6e 79 20 64 65 6c 65 74 65 64 2f 75 6e 64 | any deleted/und| 00001340 65 66 69 6e 65 64 20 6c 69 6e 65 73 20 69 6e 20 |efined lines in | 00001350 74 68 65 20 63 68 61 72 61 63 74 65 72 20 61 72 |the character ar| 00001360 65 20 64 65 65 6d 65 64 0a 74 6f 20 62 65 20 64 |e deemed.to be d| 00001370 65 6c 65 74 65 64 20 28 6c 6f 63 61 6c 29 20 6c |eleted (local) l| 00001380 69 6e 65 73 20 69 6e 20 74 68 65 20 6e 65 77 20 |ines in the new | 00001390 63 68 61 72 2c 20 73 6f 20 69 66 20 6e 65 77 20 |char, so if new | 000013a0 6c 69 6e 65 73 20 61 72 65 20 63 72 65 61 74 65 |lines are create| 000013b0 64 20 69 6e 0a 74 68 65 20 6f 6c 64 20 63 68 61 |d in.the old cha| 000013c0 72 2c 20 74 68 65 79 20 64 6f 20 6e 6f 74 20 73 |r, they do not s| 000013d0 75 64 64 65 6e 6c 79 20 61 70 70 65 61 72 20 69 |uddenly appear i| 000013e0 6e 20 74 68 65 20 6e 65 77 20 63 68 61 72 2e 0a |n the new char..| 000013f0 0a 4e 6f 74 65 20 74 68 61 74 20 77 68 65 6e 20 |.Note that when | 00001400 61 20 63 68 61 72 27 73 20 73 63 61 66 66 6f 6c |a char's scaffol| 00001410 64 20 73 65 74 20 69 73 20 64 72 61 67 67 65 64 |d set is dragged| 00001420 20 69 6e 74 6f 20 61 6e 6f 74 68 65 72 20 63 68 | into another ch| 00001430 61 72 2c 20 74 68 65 0a 6c 61 74 74 65 72 27 73 |ar, the.latter's| 00001440 20 6c 6f 63 61 6c 20 73 63 61 66 66 6f 6c 64 20 | local scaffold | 00001450 6c 69 6e 65 73 20 61 72 65 20 6c 6f 73 74 20 28 |lines are lost (| 00001460 73 69 6e 63 65 20 74 68 65 20 6c 69 6e 65 20 69 |since the line i| 00001470 6e 64 65 78 20 6e 75 6d 62 65 72 73 20 63 61 6e |ndex numbers can| 00001480 6e 6f 74 0a 62 65 20 72 65 61 64 69 6c 79 20 70 |not.be readily p| 00001490 72 65 64 69 63 74 65 64 29 2e 20 20 41 6c 73 6f |redicted). Also| 000014a0 2c 20 61 6e 79 20 6e 65 77 20 6c 69 6e 65 73 20 |, any new lines | 000014b0 61 64 64 65 64 20 74 6f 20 74 68 65 20 64 65 66 |added to the def| 000014c0 69 6e 69 74 69 6f 6e 20 6f 66 20 74 68 65 0a 62 |inition of the.b| 000014d0 61 73 65 20 63 68 61 72 20 77 69 6c 6c 20 6e 6f |ase char will no| 000014e0 74 20 62 65 20 73 65 65 6e 20 69 6e 20 74 68 65 |t be seen in the| 000014f0 20 6e 65 77 20 63 68 61 72 20 28 61 6c 74 68 6f | new char (altho| 00001500 75 67 68 20 61 6c 74 65 72 61 74 69 6f 6e 73 20 |ugh alterations | 00001510 6d 61 64 65 20 74 6f 20 74 68 65 0a 65 78 69 73 |made to the.exis| 00001520 74 69 6e 67 20 73 65 74 20 77 69 6c 6c 20 61 66 |ting set will af| 00001530 66 65 63 74 20 62 6f 74 68 20 63 68 61 72 61 63 |fect both charac| 00001540 74 65 72 73 29 2e 0a 0a 55 70 64 61 74 65 73 0a |ters)...Updates.| 00001550 2d 2d 2d 2d 2d 2d 2d 0a 0a 43 6f 70 79 69 6e 67 |-------..Copying| 00001560 20 61 20 63 68 61 72 27 73 20 73 65 74 20 69 6e | a char's set in| 00001570 74 6f 20 61 6e 6f 74 68 65 72 3a 0a 0a 78 2f 79 |to another:..x/y| 00001580 63 68 61 72 5b 5d 20 63 6f 70 69 65 64 20 66 72 |char[] copied fr| 00001590 6f 6d 20 74 68 65 20 62 61 73 65 20 63 68 61 72 |om the base char| 000015a0 20 2d 20 65 78 63 65 70 74 20 66 6f 72 20 64 65 | - except for de| 000015b0 6c 65 74 65 64 20 6c 69 6e 65 73 2c 20 77 68 65 |leted lines, whe| 000015c0 72 65 20 78 2f 79 63 68 61 72 5b 5d 20 3d 20 6e |re x/ychar[] = n| 000015d0 65 77 20 63 68 61 72 0a 78 2f 79 63 6f 6f 72 64 |ew char.x/ycoord| 000015e0 5b 5d 20 63 6f 70 69 65 64 20 2d 20 26 38 30 30 |[] copied - &800| 000015f0 30 20 3d 3d 3e 20 64 65 6c 65 74 65 64 0a 78 2f |0 ==> deleted.x/| 00001600 79 77 69 64 74 68 5b 5d 20 63 6f 70 69 65 64 20 |ywidth[] copied | 00001610 2d 20 32 35 34 2c 20 32 35 35 20 61 72 65 20 73 |- 254, 255 are s| 00001620 70 65 63 69 61 6c 0a 0a 43 72 65 61 74 69 6e 67 |pecial..Creating| 00001630 20 61 20 6e 65 77 20 73 63 61 66 66 6f 6c 64 20 | a new scaffold | 00001640 6c 69 6e 65 3a 0a 0a 49 66 20 61 20 6c 69 6e 65 |line:..If a line| 00001650 20 69 73 20 73 65 6c 65 63 74 65 64 2c 20 74 68 | is selected, th| 00001660 61 74 20 69 73 20 72 65 70 6c 61 63 65 64 20 62 |at is replaced b| 00001670 79 20 74 68 65 20 6e 65 77 20 6c 69 6e 65 0a 49 |y the new line.I| 00001680 66 20 6e 6f 20 6c 69 6e 65 20 73 65 6c 65 63 74 |f no line select| 00001690 65 64 2c 20 61 20 66 72 65 65 20 69 6e 64 65 78 |ed, a free index| 000016a0 20 69 73 20 73 65 61 63 68 65 64 20 66 6f 72 20 | is seached for | 000016b0 28 69 65 2e 20 6f 6e 65 20 77 68 6f 73 65 20 6c |(ie. one whose l| 000016c0 69 6e 65 20 69 73 20 63 75 72 72 65 6e 74 6c 79 |ine is currently| 000016d0 20 64 65 6c 65 74 65 64 2e 0a 20 20 20 20 20 49 | deleted.. I| 000016e0 66 20 6e 6f 20 6d 6f 72 65 20 66 72 65 65 20 6c |f no more free l| 000016f0 69 6e 65 73 20 61 72 65 20 61 76 61 69 6c 61 62 |ines are availab| 00001700 6c 65 2c 20 65 72 72 6f 72 20 6d 65 73 73 61 67 |le, error messag| 00001710 65 20 74 65 6c 6c 73 20 79 6f 75 20 74 6f 20 73 |e tells you to s| 00001720 65 6c 65 63 74 20 61 20 6c 69 6e 65 20 79 6f 75 |elect a line you| 00001730 20 64 6f 6e 27 74 20 6e 65 65 64 2e 0a 54 68 65 | don't need..The| 00001740 20 6e 65 77 20 6c 69 6e 65 20 69 73 20 61 6c 77 | new line is alw| 00001750 61 79 73 20 6c 6f 63 61 6c 20 74 6f 20 74 68 65 |ays local to the| 00001760 20 63 68 61 72 61 63 74 65 72 2e 0a 0a 44 72 61 | character...Dra| 00001770 67 67 69 6e 67 20 61 20 73 63 61 66 66 6f 6c 64 |gging a scaffold| 00001780 20 6c 69 6e 65 3a 0a 0a 4e 65 77 20 6c 69 6e 65 | line:..New line| 00001790 73 20 63 61 6e 20 4f 4e 4c 59 20 61 66 66 65 63 |s can ONLY affec| 000017a0 74 20 74 68 65 20 63 68 61 72 61 63 74 65 72 20 |t the character | 000017b0 74 6f 20 77 68 69 63 68 20 74 68 65 79 20 62 65 |to which they be| 000017c0 6c 6f 6e 67 20 2d 20 69 66 20 74 68 65 20 6c 69 |long - if the li| 000017d0 6e 65 0a 64 69 64 20 6e 6f 74 20 70 72 65 76 69 |ne.did not previ| 000017e0 6f 75 73 6c 79 20 65 78 69 73 74 2c 20 74 68 65 |ously exist, the| 000017f0 6e 20 61 6e 79 20 63 68 61 72 73 20 75 73 69 6e |n any chars usin| 00001800 67 20 74 68 61 74 20 61 73 20 61 20 62 61 73 65 |g that as a base| 00001810 20 77 69 6c 6c 20 68 61 76 65 20 61 0a 4c 4f 43 | will have a.LOC| 00001820 41 4c 20 64 65 6c 65 74 65 64 20 6c 69 6e 65 20 |AL deleted line | 00001830 69 6e 73 74 65 61 64 2e 0a 0a 53 6f 20 77 68 65 |instead...So whe| 00001840 6e 20 64 72 61 67 67 69 6e 67 20 61 20 6c 69 6e |n dragging a lin| 00001850 65 20 6f 6e 65 20 6d 75 73 74 20 73 65 61 72 63 |e one must searc| 00001860 68 20 66 6f 72 20 63 68 61 72 73 20 69 6e 20 74 |h for chars in t| 00001870 68 65 20 66 6f 6e 74 20 77 68 69 63 68 20 68 61 |he font which ha| 00001880 76 65 20 61 0a 72 65 66 65 72 65 6e 63 65 20 74 |ve a.reference t| 00001890 6f 20 74 68 65 20 6c 69 6e 65 2c 20 61 6e 64 20 |o the line, and | 000018a0 75 70 64 61 74 65 20 74 68 65 6d 20 2d 20 74 68 |update them - th| 000018b0 6f 73 65 20 77 68 69 63 68 20 61 72 65 20 64 69 |ose which are di| 000018c0 73 70 6c 61 79 65 64 20 77 69 6c 6c 20 62 65 0a |splayed will be.| 000018d0 75 70 64 61 74 65 64 20 69 6d 6d 65 64 69 61 74 |updated immediat| 000018e0 65 6c 79 2c 20 77 68 69 6c 65 20 74 68 65 20 6f |ely, while the o| 000018f0 74 68 65 72 73 20 61 72 65 20 64 6f 6e 65 20 77 |thers are done w| 00001900 68 65 6e 20 74 68 65 20 6c 69 6e 65 20 69 73 20 |hen the line is | 00001910 64 72 6f 70 70 65 64 2e 0a 0a 4c 6f 61 64 69 6e |dropped...Loadin| 00001920 67 2f 73 61 76 69 6e 67 20 74 68 65 20 66 6f 6e |g/saving the fon| 00001930 74 20 66 69 6c 65 0a 0a 54 68 65 20 73 63 61 66 |t file..The scaf| 00001940 66 6f 6c 64 20 6c 69 6e 65 73 20 61 72 65 20 70 |fold lines are p| 00001950 61 63 6b 65 64 20 61 6e 64 20 75 6e 70 61 63 6b |acked and unpack| 00001960 65 64 20 61 73 20 72 65 71 75 69 72 65 64 20 2d |ed as required -| 00001970 20 61 66 74 65 72 20 74 68 65 20 66 69 72 73 74 | after the first| 00001980 0a 75 6e 70 61 63 6b 69 6e 67 20 28 77 68 65 6e |.unpacking (when| 00001990 20 74 68 65 20 66 69 6c 65 20 69 73 20 66 69 72 | the file is fir| 000019a0 73 74 20 6c 6f 61 64 65 64 29 20 74 68 65 20 75 |st loaded) the u| 000019b0 6e 70 61 63 6b 65 64 20 66 6f 72 6d 20 69 73 20 |npacked form is | 000019c0 74 72 65 61 74 65 64 20 61 73 0a 74 68 65 20 6d |treated as.the m| 000019d0 61 73 74 65 72 20 64 65 66 69 6e 69 74 69 6f 6e |aster definition| 000019e0 2c 20 62 75 74 20 74 68 65 20 70 61 63 6b 65 64 |, but the packed| 000019f0 20 66 6f 72 6d 20 69 73 20 6c 65 66 74 20 6c 79 | form is left ly| 00001a00 69 6e 67 20 61 72 6f 75 6e 64 20 69 6e 20 74 68 |ing around in th| 00001a10 65 20 66 69 6c 65 0a 66 6f 72 20 63 6f 6e 76 65 |e file.for conve| 00001a20 6e 69 65 6e 63 65 20 77 68 65 6e 20 73 61 76 69 |nience when savi| 00001a30 6e 67 2e 0a |ng..| 00001a34