Home » Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/!DrawBasic/Resources/Fonts

!AWFeb95/Goodies/DrawBasic/!DrawBasic/Resources/Fonts

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 » Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95
Filename: !AWFeb95/Goodies/DrawBasic/!DrawBasic/Resources/Fonts
Read OK:
File size: 0D7C bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10REM >DrawBasic:Resources.Fonts
   20REM *********
   30REM
   40REM 1 FONTS
   50REM
   60REM *********
   70
   80DEF FNFontSize=!(HIMEM+84)
   90DEF FNFontColour=!(HIMEM+88)
  100DEF FNCurrentFont=!(HIMEM+92)
  110
  120DEF PROCFontSize(font_size%)
  130!(HIMEM+84)=font_size%*640
  140ENDPROC
  150
  160DEF PROCTextColour(colour%)
  170IF ABS(colour%)<16 THEN colour%=FNDesktopColour(colour%)
  180!(HIMEM+88)=colour%
  190SYS "ColourTrans_SetFontColours",,FNDesktopColour(0),colour%,14
  200ENDPROC
  210
  220DEF PROCCurrentFont(font%)
  230!(HIMEM+92)=font%
  240ENDPROC
  250
  260DEF PROCFont(font$,font_size%)
  270 REM ------------------------------------------
  280 REM
  290 REM Adds the font to the current list of fonts
  300 REM Making it the current font
  310 REM
  320 REM ------------------------------------------
  330 LOCAL _font%,_end%,_font$,_addr%,_newend%,_bytes%,_v%
  340 SYS "Font_FindFont",,font$,font_size%<<4,font_size%<<4 
  350 PROCFontSize(font_size%) 
  360 _addr%=!(HIMEM+8)+40 : _end%=_addr%+(_addr%!4) : _addr%+=8
  370 REPEAT
  380  _font%=_addr%?0
  390  _font$=FNString@(_addr%+1) : _addr%+=LEN(_font$)+2
  400  UNTIL _font$=font$ OR _addr%+3>=_end%
  410  IF _font$=font$ THEN
  420   PROCCurrentFont(_font%)
  430   ELSE
  440   
  450   _font%+=1 : PROCCurrentFont(_font%)
  460   _newend%=_addr%+LEN(font$)+2
  470   IF _newend% MOD 4 <> 0 THEN _newend%+=4-(_newend% MOD 4)
  480   _bytes%=_newend%-_end% :  !(!(HIMEM+8)+44)+=_bytes%
  490   PROCMoveMemory(_end%,_bytes% DIV 4)  
  500   font$=CHR$(_font%)+font$: font$+=STRING$(4,CHR$0)
  510   _v%=!_newend% 
  520   $(_addr%)=LEFT$(font$,_bytes%)
  530   !_newend%=_v% 
  540   ENDIF
  550 ENDPROC
  560 
  570DEF FNString@(address%)
  580LOCAL _x$,_i%
  590WHILE address%?_i%<>0 AND address%?_i%<>13
  600_x$+=CHR$(address%?_i%) : _i%+=1
  610ENDWHILE
  620=_x$
  630
  640REM *********
  650REM
  660REM 2 Text
  670REM
  680REM *********
  690
  700DEF PROCAddText(text$,x,y)
  710 PROCDraw_AddWord(FNFontColour)  : REM text colour
  720 PROCDraw_AddWord(FNFontColour)  : REM text background colour hint
  730 PROCDraw_AddWord(FNCurrentFont) : REM text style
  740 PROCDraw_AddWord(FNFontSize)
  750 PROCDraw_AddWord(FNFontSize)
  760 PROCDraw_AddCoords(x,y)
  770 PROCDraw_AddString(HIMEM,text$+CHR$0) 
  780ENDPROC
  790
  800DEF PROCPrint(text$,x,y)
  810 LOCAL _bytes% ,_x%,_y% : _bytes%=24+28+LEN text$+1
  820 IF _bytes%MOD4<>0 THEN _bytes%+=4-(_bytes%MOD4)
  830 PROCDraw_AddWord(1)        : REM Object type 1
  840 PROCDraw_AddWord(_bytes%)  : REM Object size
  850 PROCDraw_AddWord(-1<<30)
  860 PROCDraw_AddWord(-1<<30)
  870 PROCDraw_AddWord(1<<30)
  880 PROCDraw_AddWord(1<<30)
  890 PROCAddText(text$,x,y) 
  900 _x%=FNDraw_X(x):_y%=FNDraw_Y(y)
  910 SYS "Font_Paint",,text$,%10000,(!(HIMEM+112)+_x%)>>8,(!(HIMEM+116)+_y%)>>8
  920ENDPROC
  930
  940DEF PROCAnglePrint(text$,x,y,angle)
  950LOCAL _text% : _text%=FNText(text$,x,y)
  960PROCRotate(_text%,x,y,angle)
  970ENDPROC
  980
  990DEF FNAnglePrint(text$,x,y,angle)
 1000LOCAL _text%,_handle% : _text%=FNText(text$,x,y)
 1010_handle%=FNRotate(_text%,x,y,angle)
 1020=_handle%
 1030
 1040DEF FNText(text$,x,y)
 1050LOCAL _bytes%,_handle%,_transform%      : _bytes%=24+28+LEN text$+1+28
 1060 PROCPathEnd
 1070 !(HIMEM+4)-=4 : _handle%=!(HIMEM+4) : !_handle%=!HIMEM
 1080 IF _bytes%MOD4<>0 THEN _bytes%+=4-(_bytes%MOD4) 
 1090 PROCDraw_AddWord(12)       : REM Object type 1
 1100 PROCDraw_AddWord(_bytes%)  : REM Object size 
 1110 PROCDraw_AddWord(-2^30)
 1120 PROCDraw_AddWord(-2^30)
 1130 PROCDraw_AddWord(1<<30)
 1140 PROCDraw_AddWord(1<<30)
 1150 _transform%=!HIMEM
 1160 PROCDraw_AddWord(1<<16)    : REM Transform
 1170 PROCDraw_AddWord(0)        :
 1180 PROCDraw_AddWord(0)        :
 1190 PROCDraw_AddWord(1<<16)    :
 1200 PROCDraw_AddWord(0)        :
 1210 PROCDraw_AddWord(0)        :
 1220 PROCDraw_AddWord(0)        : REM FontFlags
 1230 PROCAddText(text$,x,y)
 1240=_handle%
 1250
 1260DEF FNPrint(text$,x,y)
 1270LOCAL _handle% : _handle%=FNText(text$,x,y)
 1280 SYS "Font_Paint",,text$,%10000,(!(HIMEM+112)+FNDraw_X(x))>>8,(!(HIMEM+116)+FNDraw_Y(y))>>8,,_handle%+24
 1290=_handle%

 � >DrawBasic:Resources.Fonts
� *********
�
(
� 1 FONTS
2�
<� *********
F
P� �FontSize=!(�+84)
Z� �FontColour=!(�+88)
d� �CurrentFont=!(�+92)
n
x� �FontSize(font_size%)
�!(�+84)=font_size%*640
��
�
�� �TextColour(colour%)
�5� �(colour%)<16 � colour%=�DesktopColour(colour%)
�!(�+88)=colour%
�Aș "ColourTrans_SetFontColours",,�DesktopColour(0),colour%,14
��
�
�� �CurrentFont(font%)
�!(�+92)=font%
��
�
� �Font(font$,font_size%)
1 � ------------------------------------------
 �
"1 � Adds the font to the current list of fonts
,! � Making it the current font
6 �
@1 � ------------------------------------------
J6 � _font%,_end%,_font$,_addr%,_newend%,_bytes%,_v%
T; ș "Font_FindFont",,font$,font_size%<<4,font_size%<<4 
^ �FontSize(font_size%) 
h; _addr%=!(�+8)+40 : _end%=_addr%+(_addr%!4) : _addr%+=8
r �
|  _font%=_addr%?0
�5  _font$=�String@(_addr%+1) : _addr%+=�(_font$)+2
�&  � _font$=font$ � _addr%+3>=_end%
�  � _font$=font$ �
�   �CurrentFont(_font%)
�   �
�   
�'   _font%+=1 : �CurrentFont(_font%)
�!   _newend%=_addr%+�(font$)+2
�7   � _newend% � 4 <> 0 � _newend%+=4-(_newend% � 4)
�6   _bytes%=_newend%-_end% :  !(!(�+8)+44)+=_bytes%
�'   �MoveMemory(_end%,_bytes% � 4)  
�+   font$=�(_font%)+font$: font$+=�4,�0)
�   _v%=!_newend% 
    $(_addr%)=�font$,_bytes%)
   !_newend%=_v% 
   �
& �
0 
:� �String@(address%)
D
� _x$,_i%
N)ȕ address%?_i%<>0 � address%?_i%<>13
X!_x$+=�(address%?_i%) : _i%+=1
b�
l=_x$
v
�� *********
��
�� 2 Text
��
�� *********
�
�� �AddText(text$,x,y)
�0 �Draw_AddWord(�FontColour)  : � text colour
�@ �Draw_AddWord(�FontColour)  : � text background colour hint
�/ �Draw_AddWord(�CurrentFont) : � text style
� �Draw_AddWord(�FontSize)
� �Draw_AddWord(�FontSize)
� �Draw_AddCoords(x,y)
! �Draw_AddString(�,text$+�0) 
�

 � �Print(text$,x,y)
*1 � _bytes% ,_x%,_y% : _bytes%=24+28+� text$+1
4, � _bytes%�4<>0 � _bytes%+=4-(_bytes%�4)
>. �Draw_AddWord(1)        : � Object type 1
H, �Draw_AddWord(_bytes%)  : � Object size
R �Draw_AddWord(-1<<30)
\ �Draw_AddWord(-1<<30)
f �Draw_AddWord(1<<30)
p �Draw_AddWord(1<<30)
z �AddText(text$,x,y) 
�" _x%=�Draw_X(x):_y%=�Draw_Y(y)
�F ș "Font_Paint",,text$,%10000,(!(�+112)+_x%)>>8,(!(�+116)+_y%)>>8
��
�
�"� �AnglePrint(text$,x,y,angle)
�&� _text% : _text%=�Text(text$,x,y)
��Rotate(_text%,x,y,angle)
��
�
�"� �AnglePrint(text$,x,y,angle)
�/� _text%,_handle% : _text%=�Text(text$,x,y)
�&_handle%=�Rotate(_text%,x,y,angle)
�
=_handle%

� �Text(text$,x,y)
D� _bytes%,_handle%,_transform%      : _bytes%=24+28+� text$+1+28
$
 �PathEnd
./ !(�+4)-=4 : _handle%=!(�+4) : !_handle%=!�
8- � _bytes%�4<>0 � _bytes%+=4-(_bytes%�4) 
B. �Draw_AddWord(12)       : � Object type 1
L- �Draw_AddWord(_bytes%)  : � Object size 
V �Draw_AddWord(-2^30)
` �Draw_AddWord(-2^30)
j �Draw_AddWord(1<<30)
t �Draw_AddWord(1<<30)
~ _transform%=!�
�* �Draw_AddWord(1<<16)    : � Transform
� �Draw_AddWord(0)        :
� �Draw_AddWord(0)        :
� �Draw_AddWord(1<<16)    :
� �Draw_AddWord(0)        :
� �Draw_AddWord(0)        :
�* �Draw_AddWord(0)        : � FontFlags
� �AddText(text$,x,y)
�
=_handle%
�
�� �Print(text$,x,y)
�*� _handle% : _handle%=�Text(text$,x,y)
a ș "Font_Paint",,text$,%10000,(!(�+112)+�Draw_X(x))>>8,(!(�+116)+�Draw_Y(y))>>8,,_handle%+24


=_handle%
�
00000000  0d 00 0a 20 f4 20 3e 44  72 61 77 42 61 73 69 63  |... . >DrawBasic|
00000010  3a 52 65 73 6f 75 72 63  65 73 2e 46 6f 6e 74 73  |:Resources.Fonts|
00000020  0d 00 14 0f f4 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 0d  |..... *********.|
00000030  00 1e 05 f4 0d 00 28 0d  f4 20 31 20 46 4f 4e 54  |......(.. 1 FONT|
00000040  53 0d 00 32 05 f4 0d 00  3c 0f f4 20 2a 2a 2a 2a  |S..2....<.. ****|
00000050  2a 2a 2a 2a 2a 0d 00 46  04 0d 00 50 17 dd 20 a4  |*****..F...P.. .|
00000060  46 6f 6e 74 53 69 7a 65  3d 21 28 93 2b 38 34 29  |FontSize=!(.+84)|
00000070  0d 00 5a 19 dd 20 a4 46  6f 6e 74 43 6f 6c 6f 75  |..Z.. .FontColou|
00000080  72 3d 21 28 93 2b 38 38  29 0d 00 64 1a dd 20 a4  |r=!(.+88)..d.. .|
00000090  43 75 72 72 65 6e 74 46  6f 6e 74 3d 21 28 93 2b  |CurrentFont=!(.+|
000000a0  39 32 29 0d 00 6e 04 0d  00 78 1b dd 20 f2 46 6f  |92)..n...x.. .Fo|
000000b0  6e 74 53 69 7a 65 28 66  6f 6e 74 5f 73 69 7a 65  |ntSize(font_size|
000000c0  25 29 0d 00 82 1a 21 28  93 2b 38 34 29 3d 66 6f  |%)....!(.+84)=fo|
000000d0  6e 74 5f 73 69 7a 65 25  2a 36 34 30 0d 00 8c 05  |nt_size%*640....|
000000e0  e1 0d 00 96 04 0d 00 a0  1a dd 20 f2 54 65 78 74  |.......... .Text|
000000f0  43 6f 6c 6f 75 72 28 63  6f 6c 6f 75 72 25 29 0d  |Colour(colour%).|
00000100  00 aa 35 e7 20 94 28 63  6f 6c 6f 75 72 25 29 3c  |..5. .(colour%)<|
00000110  31 36 20 8c 20 63 6f 6c  6f 75 72 25 3d a4 44 65  |16 . colour%=.De|
00000120  73 6b 74 6f 70 43 6f 6c  6f 75 72 28 63 6f 6c 6f  |sktopColour(colo|
00000130  75 72 25 29 0d 00 b4 13  21 28 93 2b 38 38 29 3d  |ur%)....!(.+88)=|
00000140  63 6f 6c 6f 75 72 25 0d  00 be 41 c8 99 20 22 43  |colour%...A.. "C|
00000150  6f 6c 6f 75 72 54 72 61  6e 73 5f 53 65 74 46 6f  |olourTrans_SetFo|
00000160  6e 74 43 6f 6c 6f 75 72  73 22 2c 2c a4 44 65 73  |ntColours",,.Des|
00000170  6b 74 6f 70 43 6f 6c 6f  75 72 28 30 29 2c 63 6f  |ktopColour(0),co|
00000180  6c 6f 75 72 25 2c 31 34  0d 00 c8 05 e1 0d 00 d2  |lour%,14........|
00000190  04 0d 00 dc 19 dd 20 f2  43 75 72 72 65 6e 74 46  |...... .CurrentF|
000001a0  6f 6e 74 28 66 6f 6e 74  25 29 0d 00 e6 11 21 28  |ont(font%)....!(|
000001b0  93 2b 39 32 29 3d 66 6f  6e 74 25 0d 00 f0 05 e1  |.+92)=font%.....|
000001c0  0d 00 fa 04 0d 01 04 1d  dd 20 f2 46 6f 6e 74 28  |......... .Font(|
000001d0  66 6f 6e 74 24 2c 66 6f  6e 74 5f 73 69 7a 65 25  |font$,font_size%|
000001e0  29 0d 01 0e 31 20 f4 20  2d 2d 2d 2d 2d 2d 2d 2d  |)...1 . --------|
000001f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000210  2d 2d 0d 01 18 06 20 f4  0d 01 22 31 20 f4 20 41  |--.... ..."1 . A|
00000220  64 64 73 20 74 68 65 20  66 6f 6e 74 20 74 6f 20  |dds the font to |
00000230  74 68 65 20 63 75 72 72  65 6e 74 20 6c 69 73 74  |the current list|
00000240  20 6f 66 20 66 6f 6e 74  73 0d 01 2c 21 20 f4 20  | of fonts..,! . |
00000250  4d 61 6b 69 6e 67 20 69  74 20 74 68 65 20 63 75  |Making it the cu|
00000260  72 72 65 6e 74 20 66 6f  6e 74 0d 01 36 06 20 f4  |rrent font..6. .|
00000270  0d 01 40 31 20 f4 20 2d  2d 2d 2d 2d 2d 2d 2d 2d  |..@1 . ---------|
00000280  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000002a0  2d 0d 01 4a 36 20 ea 20  5f 66 6f 6e 74 25 2c 5f  |-..J6 . _font%,_|
000002b0  65 6e 64 25 2c 5f 66 6f  6e 74 24 2c 5f 61 64 64  |end%,_font$,_add|
000002c0  72 25 2c 5f 6e 65 77 65  6e 64 25 2c 5f 62 79 74  |r%,_newend%,_byt|
000002d0  65 73 25 2c 5f 76 25 0d  01 54 3b 20 c8 99 20 22  |es%,_v%..T; .. "|
000002e0  46 6f 6e 74 5f 46 69 6e  64 46 6f 6e 74 22 2c 2c  |Font_FindFont",,|
000002f0  66 6f 6e 74 24 2c 66 6f  6e 74 5f 73 69 7a 65 25  |font$,font_size%|
00000300  3c 3c 34 2c 66 6f 6e 74  5f 73 69 7a 65 25 3c 3c  |<<4,font_size%<<|
00000310  34 20 0d 01 5e 1b 20 f2  46 6f 6e 74 53 69 7a 65  |4 ..^. .FontSize|
00000320  28 66 6f 6e 74 5f 73 69  7a 65 25 29 20 0d 01 68  |(font_size%) ..h|
00000330  3b 20 5f 61 64 64 72 25  3d 21 28 93 2b 38 29 2b  |; _addr%=!(.+8)+|
00000340  34 30 20 3a 20 5f 65 6e  64 25 3d 5f 61 64 64 72  |40 : _end%=_addr|
00000350  25 2b 28 5f 61 64 64 72  25 21 34 29 20 3a 20 5f  |%+(_addr%!4) : _|
00000360  61 64 64 72 25 2b 3d 38  0d 01 72 06 20 f5 0d 01  |addr%+=8..r. ...|
00000370  7c 15 20 20 5f 66 6f 6e  74 25 3d 5f 61 64 64 72  ||.  _font%=_addr|
00000380  25 3f 30 0d 01 86 35 20  20 5f 66 6f 6e 74 24 3d  |%?0...5  _font$=|
00000390  a4 53 74 72 69 6e 67 40  28 5f 61 64 64 72 25 2b  |.String@(_addr%+|
000003a0  31 29 20 3a 20 5f 61 64  64 72 25 2b 3d a9 28 5f  |1) : _addr%+=.(_|
000003b0  66 6f 6e 74 24 29 2b 32  0d 01 90 26 20 20 fd 20  |font$)+2...&  . |
000003c0  5f 66 6f 6e 74 24 3d 66  6f 6e 74 24 20 84 20 5f  |_font$=font$ . _|
000003d0  61 64 64 72 25 2b 33 3e  3d 5f 65 6e 64 25 0d 01  |addr%+3>=_end%..|
000003e0  9a 16 20 20 e7 20 5f 66  6f 6e 74 24 3d 66 6f 6e  |..  . _font$=fon|
000003f0  74 24 20 8c 0d 01 a4 1b  20 20 20 f2 43 75 72 72  |t$ .....   .Curr|
00000400  65 6e 74 46 6f 6e 74 28  5f 66 6f 6e 74 25 29 0d  |entFont(_font%).|
00000410  01 ae 08 20 20 20 cc 0d  01 b8 07 20 20 20 0d 01  |...   .....   ..|
00000420  c2 27 20 20 20 5f 66 6f  6e 74 25 2b 3d 31 20 3a  |.'   _font%+=1 :|
00000430  20 f2 43 75 72 72 65 6e  74 46 6f 6e 74 28 5f 66  | .CurrentFont(_f|
00000440  6f 6e 74 25 29 0d 01 cc  21 20 20 20 5f 6e 65 77  |ont%)...!   _new|
00000450  65 6e 64 25 3d 5f 61 64  64 72 25 2b a9 28 66 6f  |end%=_addr%+.(fo|
00000460  6e 74 24 29 2b 32 0d 01  d6 37 20 20 20 e7 20 5f  |nt$)+2...7   . _|
00000470  6e 65 77 65 6e 64 25 20  83 20 34 20 3c 3e 20 30  |newend% . 4 <> 0|
00000480  20 8c 20 5f 6e 65 77 65  6e 64 25 2b 3d 34 2d 28  | . _newend%+=4-(|
00000490  5f 6e 65 77 65 6e 64 25  20 83 20 34 29 0d 01 e0  |_newend% . 4)...|
000004a0  36 20 20 20 5f 62 79 74  65 73 25 3d 5f 6e 65 77  |6   _bytes%=_new|
000004b0  65 6e 64 25 2d 5f 65 6e  64 25 20 3a 20 20 21 28  |end%-_end% :  !(|
000004c0  21 28 93 2b 38 29 2b 34  34 29 2b 3d 5f 62 79 74  |!(.+8)+44)+=_byt|
000004d0  65 73 25 0d 01 ea 27 20  20 20 f2 4d 6f 76 65 4d  |es%...'   .MoveM|
000004e0  65 6d 6f 72 79 28 5f 65  6e 64 25 2c 5f 62 79 74  |emory(_end%,_byt|
000004f0  65 73 25 20 81 20 34 29  20 20 0d 01 f4 2b 20 20  |es% . 4)  ...+  |
00000500  20 66 6f 6e 74 24 3d bd  28 5f 66 6f 6e 74 25 29  | font$=.(_font%)|
00000510  2b 66 6f 6e 74 24 3a 20  66 6f 6e 74 24 2b 3d c4  |+font$: font$+=.|
00000520  34 2c bd 30 29 0d 01 fe  15 20 20 20 5f 76 25 3d  |4,.0)....   _v%=|
00000530  21 5f 6e 65 77 65 6e 64  25 20 0d 02 08 20 20 20  |!_newend% ...   |
00000540  20 24 28 5f 61 64 64 72  25 29 3d c0 66 6f 6e 74  | $(_addr%)=.font|
00000550  24 2c 5f 62 79 74 65 73  25 29 0d 02 12 15 20 20  |$,_bytes%)....  |
00000560  20 21 5f 6e 65 77 65 6e  64 25 3d 5f 76 25 20 0d  | !_newend%=_v% .|
00000570  02 1c 08 20 20 20 cd 0d  02 26 06 20 e1 0d 02 30  |...   ...&. ...0|
00000580  05 20 0d 02 3a 18 dd 20  a4 53 74 72 69 6e 67 40  |. ..:.. .String@|
00000590  28 61 64 64 72 65 73 73  25 29 0d 02 44 0d ea 20  |(address%)..D.. |
000005a0  5f 78 24 2c 5f 69 25 0d  02 4e 29 c8 95 20 61 64  |_x$,_i%..N).. ad|
000005b0  64 72 65 73 73 25 3f 5f  69 25 3c 3e 30 20 80 20  |dress%?_i%<>0 . |
000005c0  61 64 64 72 65 73 73 25  3f 5f 69 25 3c 3e 31 33  |address%?_i%<>13|
000005d0  0d 02 58 21 5f 78 24 2b  3d bd 28 61 64 64 72 65  |..X!_x$+=.(addre|
000005e0  73 73 25 3f 5f 69 25 29  20 3a 20 5f 69 25 2b 3d  |ss%?_i%) : _i%+=|
000005f0  31 0d 02 62 05 ce 0d 02  6c 08 3d 5f 78 24 0d 02  |1..b....l.=_x$..|
00000600  76 04 0d 02 80 0f f4 20  2a 2a 2a 2a 2a 2a 2a 2a  |v...... ********|
00000610  2a 0d 02 8a 05 f4 0d 02  94 0c f4 20 32 20 54 65  |*.......... 2 Te|
00000620  78 74 0d 02 9e 05 f4 0d  02 a8 0f f4 20 2a 2a 2a  |xt.......... ***|
00000630  2a 2a 2a 2a 2a 2a 0d 02  b2 04 0d 02 bc 19 dd 20  |******......... |
00000640  f2 41 64 64 54 65 78 74  28 74 65 78 74 24 2c 78  |.AddText(text$,x|
00000650  2c 79 29 0d 02 c6 30 20  f2 44 72 61 77 5f 41 64  |,y)...0 .Draw_Ad|
00000660  64 57 6f 72 64 28 a4 46  6f 6e 74 43 6f 6c 6f 75  |dWord(.FontColou|
00000670  72 29 20 20 3a 20 f4 20  74 65 78 74 20 63 6f 6c  |r)  : . text col|
00000680  6f 75 72 0d 02 d0 40 20  f2 44 72 61 77 5f 41 64  |our...@ .Draw_Ad|
00000690  64 57 6f 72 64 28 a4 46  6f 6e 74 43 6f 6c 6f 75  |dWord(.FontColou|
000006a0  72 29 20 20 3a 20 f4 20  74 65 78 74 20 62 61 63  |r)  : . text bac|
000006b0  6b 67 72 6f 75 6e 64 20  63 6f 6c 6f 75 72 20 68  |kground colour h|
000006c0  69 6e 74 0d 02 da 2f 20  f2 44 72 61 77 5f 41 64  |int.../ .Draw_Ad|
000006d0  64 57 6f 72 64 28 a4 43  75 72 72 65 6e 74 46 6f  |dWord(.CurrentFo|
000006e0  6e 74 29 20 3a 20 f4 20  74 65 78 74 20 73 74 79  |nt) : . text sty|
000006f0  6c 65 0d 02 e4 1d 20 f2  44 72 61 77 5f 41 64 64  |le.... .Draw_Add|
00000700  57 6f 72 64 28 a4 46 6f  6e 74 53 69 7a 65 29 0d  |Word(.FontSize).|
00000710  02 ee 1d 20 f2 44 72 61  77 5f 41 64 64 57 6f 72  |... .Draw_AddWor|
00000720  64 28 a4 46 6f 6e 74 53  69 7a 65 29 0d 02 f8 19  |d(.FontSize)....|
00000730  20 f2 44 72 61 77 5f 41  64 64 43 6f 6f 72 64 73  | .Draw_AddCoords|
00000740  28 78 2c 79 29 0d 03 02  21 20 f2 44 72 61 77 5f  |(x,y)...! .Draw_|
00000750  41 64 64 53 74 72 69 6e  67 28 93 2c 74 65 78 74  |AddString(.,text|
00000760  24 2b bd 30 29 20 0d 03  0c 05 e1 0d 03 16 04 0d  |$+.0) ..........|
00000770  03 20 17 dd 20 f2 50 72  69 6e 74 28 74 65 78 74  |. .. .Print(text|
00000780  24 2c 78 2c 79 29 0d 03  2a 31 20 ea 20 5f 62 79  |$,x,y)..*1 . _by|
00000790  74 65 73 25 20 2c 5f 78  25 2c 5f 79 25 20 3a 20  |tes% ,_x%,_y% : |
000007a0  5f 62 79 74 65 73 25 3d  32 34 2b 32 38 2b a9 20  |_bytes%=24+28+. |
000007b0  74 65 78 74 24 2b 31 0d  03 34 2c 20 e7 20 5f 62  |text$+1..4, . _b|
000007c0  79 74 65 73 25 83 34 3c  3e 30 20 8c 20 5f 62 79  |ytes%.4<>0 . _by|
000007d0  74 65 73 25 2b 3d 34 2d  28 5f 62 79 74 65 73 25  |tes%+=4-(_bytes%|
000007e0  83 34 29 0d 03 3e 2e 20  f2 44 72 61 77 5f 41 64  |.4)..>. .Draw_Ad|
000007f0  64 57 6f 72 64 28 31 29  20 20 20 20 20 20 20 20  |dWord(1)        |
00000800  3a 20 f4 20 4f 62 6a 65  63 74 20 74 79 70 65 20  |: . Object type |
00000810  31 0d 03 48 2c 20 f2 44  72 61 77 5f 41 64 64 57  |1..H, .Draw_AddW|
00000820  6f 72 64 28 5f 62 79 74  65 73 25 29 20 20 3a 20  |ord(_bytes%)  : |
00000830  f4 20 4f 62 6a 65 63 74  20 73 69 7a 65 0d 03 52  |. Object size..R|
00000840  1a 20 f2 44 72 61 77 5f  41 64 64 57 6f 72 64 28  |. .Draw_AddWord(|
00000850  2d 31 3c 3c 33 30 29 0d  03 5c 1a 20 f2 44 72 61  |-1<<30)..\. .Dra|
00000860  77 5f 41 64 64 57 6f 72  64 28 2d 31 3c 3c 33 30  |w_AddWord(-1<<30|
00000870  29 0d 03 66 19 20 f2 44  72 61 77 5f 41 64 64 57  |)..f. .Draw_AddW|
00000880  6f 72 64 28 31 3c 3c 33  30 29 0d 03 70 19 20 f2  |ord(1<<30)..p. .|
00000890  44 72 61 77 5f 41 64 64  57 6f 72 64 28 31 3c 3c  |Draw_AddWord(1<<|
000008a0  33 30 29 0d 03 7a 19 20  f2 41 64 64 54 65 78 74  |30)..z. .AddText|
000008b0  28 74 65 78 74 24 2c 78  2c 79 29 20 0d 03 84 22  |(text$,x,y) ..."|
000008c0  20 5f 78 25 3d a4 44 72  61 77 5f 58 28 78 29 3a  | _x%=.Draw_X(x):|
000008d0  5f 79 25 3d a4 44 72 61  77 5f 59 28 79 29 0d 03  |_y%=.Draw_Y(y)..|
000008e0  8e 46 20 c8 99 20 22 46  6f 6e 74 5f 50 61 69 6e  |.F .. "Font_Pain|
000008f0  74 22 2c 2c 74 65 78 74  24 2c 25 31 30 30 30 30  |t",,text$,%10000|
00000900  2c 28 21 28 93 2b 31 31  32 29 2b 5f 78 25 29 3e  |,(!(.+112)+_x%)>|
00000910  3e 38 2c 28 21 28 93 2b  31 31 36 29 2b 5f 79 25  |>8,(!(.+116)+_y%|
00000920  29 3e 3e 38 0d 03 98 05  e1 0d 03 a2 04 0d 03 ac  |)>>8............|
00000930  22 dd 20 f2 41 6e 67 6c  65 50 72 69 6e 74 28 74  |". .AnglePrint(t|
00000940  65 78 74 24 2c 78 2c 79  2c 61 6e 67 6c 65 29 0d  |ext$,x,y,angle).|
00000950  03 b6 26 ea 20 5f 74 65  78 74 25 20 3a 20 5f 74  |..&. _text% : _t|
00000960  65 78 74 25 3d a4 54 65  78 74 28 74 65 78 74 24  |ext%=.Text(text$|
00000970  2c 78 2c 79 29 0d 03 c0  1d f2 52 6f 74 61 74 65  |,x,y).....Rotate|
00000980  28 5f 74 65 78 74 25 2c  78 2c 79 2c 61 6e 67 6c  |(_text%,x,y,angl|
00000990  65 29 0d 03 ca 05 e1 0d  03 d4 04 0d 03 de 22 dd  |e)............".|
000009a0  20 a4 41 6e 67 6c 65 50  72 69 6e 74 28 74 65 78  | .AnglePrint(tex|
000009b0  74 24 2c 78 2c 79 2c 61  6e 67 6c 65 29 0d 03 e8  |t$,x,y,angle)...|
000009c0  2f ea 20 5f 74 65 78 74  25 2c 5f 68 61 6e 64 6c  |/. _text%,_handl|
000009d0  65 25 20 3a 20 5f 74 65  78 74 25 3d a4 54 65 78  |e% : _text%=.Tex|
000009e0  74 28 74 65 78 74 24 2c  78 2c 79 29 0d 03 f2 26  |t(text$,x,y)...&|
000009f0  5f 68 61 6e 64 6c 65 25  3d a4 52 6f 74 61 74 65  |_handle%=.Rotate|
00000a00  28 5f 74 65 78 74 25 2c  78 2c 79 2c 61 6e 67 6c  |(_text%,x,y,angl|
00000a10  65 29 0d 03 fc 0d 3d 5f  68 61 6e 64 6c 65 25 0d  |e)....=_handle%.|
00000a20  04 06 04 0d 04 10 16 dd  20 a4 54 65 78 74 28 74  |........ .Text(t|
00000a30  65 78 74 24 2c 78 2c 79  29 0d 04 1a 44 ea 20 5f  |ext$,x,y)...D. _|
00000a40  62 79 74 65 73 25 2c 5f  68 61 6e 64 6c 65 25 2c  |bytes%,_handle%,|
00000a50  5f 74 72 61 6e 73 66 6f  72 6d 25 20 20 20 20 20  |_transform%     |
00000a60  20 3a 20 5f 62 79 74 65  73 25 3d 32 34 2b 32 38  | : _bytes%=24+28|
00000a70  2b a9 20 74 65 78 74 24  2b 31 2b 32 38 0d 04 24  |+. text$+1+28..$|
00000a80  0d 20 f2 50 61 74 68 45  6e 64 0d 04 2e 2f 20 21  |. .PathEnd.../ !|
00000a90  28 93 2b 34 29 2d 3d 34  20 3a 20 5f 68 61 6e 64  |(.+4)-=4 : _hand|
00000aa0  6c 65 25 3d 21 28 93 2b  34 29 20 3a 20 21 5f 68  |le%=!(.+4) : !_h|
00000ab0  61 6e 64 6c 65 25 3d 21  93 0d 04 38 2d 20 e7 20  |andle%=!...8- . |
00000ac0  5f 62 79 74 65 73 25 83  34 3c 3e 30 20 8c 20 5f  |_bytes%.4<>0 . _|
00000ad0  62 79 74 65 73 25 2b 3d  34 2d 28 5f 62 79 74 65  |bytes%+=4-(_byte|
00000ae0  73 25 83 34 29 20 0d 04  42 2e 20 f2 44 72 61 77  |s%.4) ..B. .Draw|
00000af0  5f 41 64 64 57 6f 72 64  28 31 32 29 20 20 20 20  |_AddWord(12)    |
00000b00  20 20 20 3a 20 f4 20 4f  62 6a 65 63 74 20 74 79  |   : . Object ty|
00000b10  70 65 20 31 0d 04 4c 2d  20 f2 44 72 61 77 5f 41  |pe 1..L- .Draw_A|
00000b20  64 64 57 6f 72 64 28 5f  62 79 74 65 73 25 29 20  |ddWord(_bytes%) |
00000b30  20 3a 20 f4 20 4f 62 6a  65 63 74 20 73 69 7a 65  | : . Object size|
00000b40  20 0d 04 56 19 20 f2 44  72 61 77 5f 41 64 64 57  | ..V. .Draw_AddW|
00000b50  6f 72 64 28 2d 32 5e 33  30 29 0d 04 60 19 20 f2  |ord(-2^30)..`. .|
00000b60  44 72 61 77 5f 41 64 64  57 6f 72 64 28 2d 32 5e  |Draw_AddWord(-2^|
00000b70  33 30 29 0d 04 6a 19 20  f2 44 72 61 77 5f 41 64  |30)..j. .Draw_Ad|
00000b80  64 57 6f 72 64 28 31 3c  3c 33 30 29 0d 04 74 19  |dWord(1<<30)..t.|
00000b90  20 f2 44 72 61 77 5f 41  64 64 57 6f 72 64 28 31  | .Draw_AddWord(1|
00000ba0  3c 3c 33 30 29 0d 04 7e  13 20 5f 74 72 61 6e 73  |<<30)..~. _trans|
00000bb0  66 6f 72 6d 25 3d 21 93  0d 04 88 2a 20 f2 44 72  |form%=!....* .Dr|
00000bc0  61 77 5f 41 64 64 57 6f  72 64 28 31 3c 3c 31 36  |aw_AddWord(1<<16|
00000bd0  29 20 20 20 20 3a 20 f4  20 54 72 61 6e 73 66 6f  |)    : . Transfo|
00000be0  72 6d 0d 04 92 1e 20 f2  44 72 61 77 5f 41 64 64  |rm.... .Draw_Add|
00000bf0  57 6f 72 64 28 30 29 20  20 20 20 20 20 20 20 3a  |Word(0)        :|
00000c00  0d 04 9c 1e 20 f2 44 72  61 77 5f 41 64 64 57 6f  |.... .Draw_AddWo|
00000c10  72 64 28 30 29 20 20 20  20 20 20 20 20 3a 0d 04  |rd(0)        :..|
00000c20  a6 1e 20 f2 44 72 61 77  5f 41 64 64 57 6f 72 64  |.. .Draw_AddWord|
00000c30  28 31 3c 3c 31 36 29 20  20 20 20 3a 0d 04 b0 1e  |(1<<16)    :....|
00000c40  20 f2 44 72 61 77 5f 41  64 64 57 6f 72 64 28 30  | .Draw_AddWord(0|
00000c50  29 20 20 20 20 20 20 20  20 3a 0d 04 ba 1e 20 f2  |)        :.... .|
00000c60  44 72 61 77 5f 41 64 64  57 6f 72 64 28 30 29 20  |Draw_AddWord(0) |
00000c70  20 20 20 20 20 20 20 3a  0d 04 c4 2a 20 f2 44 72  |       :...* .Dr|
00000c80  61 77 5f 41 64 64 57 6f  72 64 28 30 29 20 20 20  |aw_AddWord(0)   |
00000c90  20 20 20 20 20 3a 20 f4  20 46 6f 6e 74 46 6c 61  |     : . FontFla|
00000ca0  67 73 0d 04 ce 18 20 f2  41 64 64 54 65 78 74 28  |gs.... .AddText(|
00000cb0  74 65 78 74 24 2c 78 2c  79 29 0d 04 d8 0d 3d 5f  |text$,x,y)....=_|
00000cc0  68 61 6e 64 6c 65 25 0d  04 e2 04 0d 04 ec 17 dd  |handle%.........|
00000cd0  20 a4 50 72 69 6e 74 28  74 65 78 74 24 2c 78 2c  | .Print(text$,x,|
00000ce0  79 29 0d 04 f6 2a ea 20  5f 68 61 6e 64 6c 65 25  |y)...*. _handle%|
00000cf0  20 3a 20 5f 68 61 6e 64  6c 65 25 3d a4 54 65 78  | : _handle%=.Tex|
00000d00  74 28 74 65 78 74 24 2c  78 2c 79 29 0d 05 00 61  |t(text$,x,y)...a|
00000d10  20 c8 99 20 22 46 6f 6e  74 5f 50 61 69 6e 74 22  | .. "Font_Paint"|
00000d20  2c 2c 74 65 78 74 24 2c  25 31 30 30 30 30 2c 28  |,,text$,%10000,(|
00000d30  21 28 93 2b 31 31 32 29  2b a4 44 72 61 77 5f 58  |!(.+112)+.Draw_X|
00000d40  28 78 29 29 3e 3e 38 2c  28 21 28 93 2b 31 31 36  |(x))>>8,(!(.+116|
00000d50  29 2b a4 44 72 61 77 5f  59 28 79 29 29 3e 3e 38  |)+.Draw_Y(y))>>8|
00000d60  2c 2c 5f 68 61 6e 64 6c  65 25 2b 32 34 0d 05 0a  |,,_handle%+24...|
00000d70  0d 3d 5f 68 61 6e 64 6c  65 25 0d ff              |.=_handle%..|
00000d7c