Home » Archimedes archive » Acorn User » AU 1994-02.adf » !StarInfo_StarInfo » Gerrits/SetFont

Gerrits/SetFont

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 » Acorn User » AU 1994-02.adf » !StarInfo_StarInfo
Filename: Gerrits/SetFont
Read OK:
File size: 014C bytes
Load address: 0000
Exec address: 0000
File contents
   10 REM >SetFont     {Prepare Desktop$FontHandle for use in WimpPatch}
   20 REM By Erwin Gerrits
   30 REM For RISC-OS 3.1
   40 REM (c) BAU
   50
   60 DIM block 255
   70 SYS "XOS_ReadVarVal","Desktop$Font",block,255,0,3 TO ,,len
   80 block?len=13
   90 SYS "XFont_FindFont",,$block,11*16,11*16 TO handle
  100
  110 OSCLI("SetEval Desktop$FontHandle "+STR$(handle))

E � >SetFont     {Prepare Desktop$FontHandle for use in WimpPatch}
 � By Erwin Gerrits
 � For RISC-OS 3.1
( � (c) BAU
2
< � block 255
F= ș "XOS_ReadVarVal","Desktop$Font",block,255,0,3 � ,,len
P block?len=13
Z5 ș "XFont_FindFont",,$block,11*16,11*16 � handle
d
n/ �("SetEval Desktop$FontHandle "+�(handle))
�
00000000  0d 00 0a 45 20 f4 20 3e  53 65 74 46 6f 6e 74 20  |...E . >SetFont |
00000010  20 20 20 20 7b 50 72 65  70 61 72 65 20 44 65 73  |    {Prepare Des|
00000020  6b 74 6f 70 24 46 6f 6e  74 48 61 6e 64 6c 65 20  |ktop$FontHandle |
00000030  66 6f 72 20 75 73 65 20  69 6e 20 57 69 6d 70 50  |for use in WimpP|
00000040  61 74 63 68 7d 0d 00 14  17 20 f4 20 42 79 20 45  |atch}.... . By E|
00000050  72 77 69 6e 20 47 65 72  72 69 74 73 0d 00 1e 16  |rwin Gerrits....|
00000060  20 f4 20 46 6f 72 20 52  49 53 43 2d 4f 53 20 33  | . For RISC-OS 3|
00000070  2e 31 0d 00 28 0e 20 f4  20 28 63 29 20 42 41 55  |.1..(. . (c) BAU|
00000080  0d 00 32 04 0d 00 3c 10  20 de 20 62 6c 6f 63 6b  |..2...<. . block|
00000090  20 32 35 35 0d 00 46 3d  20 c8 99 20 22 58 4f 53  | 255..F= .. "XOS|
000000a0  5f 52 65 61 64 56 61 72  56 61 6c 22 2c 22 44 65  |_ReadVarVal","De|
000000b0  73 6b 74 6f 70 24 46 6f  6e 74 22 2c 62 6c 6f 63  |sktop$Font",bloc|
000000c0  6b 2c 32 35 35 2c 30 2c  33 20 b8 20 2c 2c 6c 65  |k,255,0,3 . ,,le|
000000d0  6e 0d 00 50 11 20 62 6c  6f 63 6b 3f 6c 65 6e 3d  |n..P. block?len=|
000000e0  31 33 0d 00 5a 35 20 c8  99 20 22 58 46 6f 6e 74  |13..Z5 .. "XFont|
000000f0  5f 46 69 6e 64 46 6f 6e  74 22 2c 2c 24 62 6c 6f  |_FindFont",,$blo|
00000100  63 6b 2c 31 31 2a 31 36  2c 31 31 2a 31 36 20 b8  |ck,11*16,11*16 .|
00000110  20 68 61 6e 64 6c 65 0d  00 64 04 0d 00 6e 2f 20  | handle..d...n/ |
00000120  ff 28 22 53 65 74 45 76  61 6c 20 44 65 73 6b 74  |.("SetEval Deskt|
00000130  6f 70 24 46 6f 6e 74 48  61 6e 64 6c 65 20 22 2b  |op$FontHandle "+|
00000140  c3 28 68 61 6e 64 6c 65  29 29 0d ff              |.(handle))..|
0000014c