home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 247 / 247.d81 / t.scrn2font < prev    next >
Text File  |  2022-08-26  |  4KB  |  153 lines

  1. u
  2.          S H P   2   F O N T
  3.            by Dave Moorman
  4.  
  5.  
  6.     SCRN2FONT is a step-by-step
  7. utility. First, you must have your
  8. bitmap graphic in the SHP format,
  9. which is easy to do with STBPRINT.
  10. Then you can choose the disk drive the
  11. SHP file is on by clicking on
  12.  
  13.             [1. Disk Drive]
  14.  
  15.  (or press <1>). Then select the
  16. drive.
  17.  
  18.     Now on with the work. Choose
  19.  
  20.               [2. Get SHP]
  21.  
  22.  A scrolling menu of *.SHP files is
  23. offered. Click the mouse or press
  24. <BACK ARROW> to return.
  25.  
  26.  
  27.              [3. Make FTS]
  28.  
  29.  You [must] choose a SHP file before
  30. this action can happen.
  31.  
  32.     An FTS file has font, screen, and
  33. color information. You will be asked
  34. if you want to use 256, 192, 128, or
  35. 64 font characters -- or Not do it at
  36. all. More characters dedicated to the
  37. image mean less for alphanumeric text.
  38.  
  39.     The program looks at each 8-byte
  40. cell of the bitmap screen and compares
  41. it to the cells already recorded in
  42. the font. Font characters are used
  43. over again if they match. Otherwise, a
  44. new character is created, copying the
  45. 8-byte cell from the bitmap. That
  46. character is place on the text screen.
  47.  
  48.     If you run out of available
  49. characters in the font, the process
  50. just stops. Either way, you can save
  51. the result as an FTS file (with [5.
  52. Save File]).
  53.  
  54.     Remember, cells that are identical
  55. use the same font character. So large
  56. patches of clear cells will use only
  57. one character.
  58.  
  59.  
  60.             [5. Make Block]
  61.  
  62.     The alternative to replicating the
  63. whole bitmap is to make a block that
  64. contains 128 or 196 characters. Again,
  65. a SHP file must be chosen with [1.]
  66. before this action will work.
  67.  
  68.     When the bitmap is displayed, a
  69. single square will follow the mouse
  70. arrow around. Click to place this
  71. square in the upper left corner of the
  72. area you want to capture. Once you
  73. have clicked, three other squares move
  74. in concert with the mouse arrow to
  75. designate the other corners of the
  76. block. When you have the block
  77. defined, click again.
  78.  
  79.     If you goof up, press <BACK ARROW>
  80. to return to the first phase. During
  81. the first phase, <BACK ARROW> will
  82. return you to the main menu.
  83.  
  84.     During the first phase, a Right
  85. Click will change the color of the
  86. blocks. A Right Click during the
  87. second phase toggles between 192 and
  88. 128 font characters available for the
  89. block. The squares will not move
  90. outside the given available space.
  91. However, when you toggle to 128
  92. characters, you will want to move the
  93. squares closer together then out again
  94. to mark the correct amount of area.
  95.  
  96.  
  97.                [5. Save]
  98.  
  99.     This action will not work unless
  100. you have made an FTS or a Block. Then,
  101. it will automatically save the
  102. appropriate file format. Just type in
  103. the name. If the file name exists on
  104. the disk, a warning will appear.
  105.  
  106.  
  107.                [6. Exit]
  108.  
  109.     Returns you to LOADSTAR or BASIC.
  110.  
  111.  
  112. The BLOCK File
  113. --------------
  114.  
  115.     Putting the Block on the screen is
  116. fairly easy -- even in BASIC. I
  117. reserved the last three bytes of the
  118. font (character screen code 255) to
  119. record the starting character, the
  120. width, and the height of the block. If
  121. you are using DotBASIC, the custom
  122. font is at 2048. Bload the font with
  123. the Block with:
  124.  
  125.  .bl,"f.block",dv,2048
  126.  
  127.     Then get the beginning screen
  128. code:
  129.  
  130.  bc=peek(4093):rem font+2045
  131.  
  132.     Set the upper left corner of the
  133. block with:
  134.  
  135.  bk=1024+by*40+bx
  136.  
  137. (where bx/by is the cell
  138. coordinate of the block position.)
  139.  
  140.     Now you can use FOR-NEXT loops to
  141. put the block on the screen.
  142.  
  143.  for y = 0 to peek(4095):rem font+2047
  144.    for x = 0 to peek(4094):rem +2046
  145.      poke bk+y*40+x,bc:bc=bc+1
  146.    next
  147.  next
  148.  
  149.     ML would be quicker. You write it!
  150.  
  151.  DMM
  152.  
  153.  
  154.