home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / h / htmix20.zip / FE.ZIP / FE.DOC next >
Text File  |  1992-07-12  |  8KB  |  210 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                        ┌───────────────────────────┐
  9.                        │                           │
  10.                        │      Font Editor 2.0      │
  11.                        │                           │
  12.                        └───────────────────────────┘
  13.  
  14.                                 Written by
  15.                               Harald Thunem
  16.  
  17.  
  18.  
  19.          1.SHORT DESCRIPTION
  20.          ───────────────────
  21.  
  22.            This package contains a few  programs to create,  edit and load
  23.          ASCII font characters in text-mode.  There is also a UNIT,  which
  24.          can be  used in any  Turbo Pascal  program  written  in  versions
  25.          4.0 - 6.0  (I think).  I have  seen several  programs that define
  26.          new characters in text-mode (like Norton Utilities' Radio Buttons
  27.          and Chech Boxes),  but I  wanted to make a  program where you can
  28.          create and edit your own.
  29.  
  30.  
  31.          2.THE FILES
  32.          ───────────
  33.  
  34.            FE.EXE       - The font editor program
  35.            FE.PAS       - Program source
  36.            FE.DOC       - This file
  37.            LOADFNT.EXE  - Program to load a font from file
  38.            LOADFNT.PAS  - Source code for LOAD
  39.            FEUNIT.TPU   - Unit containing a couple of procedures and
  40.                           functions
  41.            FEUNIT.PAS   - Source code for FEUNIT
  42.            STANDARD.FNT - Standard ASCII font file (norwegian)
  43.            MODERN.FNT   - Modern font file
  44.  
  45.  
  46.          3.REQUIREMENTS
  47.          ──────────────
  48.  
  49.            VGA - it works reasonably well on EGA, but you'll have to make
  50.                  your own standard font.
  51.            DOS 3.x or higher
  52.  
  53.  
  54.          4.HOW TO USE THE FONT EDITOR
  55.          ────────────────────────────
  56.  
  57.            Start it up with the command
  58.  
  59.              FE [fontfile[.ext]]
  60.  
  61.          where fontfile is the name of the file containing the font
  62.          you want to edit. If this is left out, the program will use
  63.          the file STANDARD.FNT. If this file is not in the current
  64.          directory, the program terminates.
  65.  
  66.            If you want to make a new font, copy one of the font files
  67.          to another file, and edit that.
  68.  
  69.            The program will display all the characters (0-255) in a
  70.          separate window on the right of the screen. The character
  71.          being edited will be highlighted. On the left is the editor window.
  72.  
  73.  
  74.         8  7  6  5  4  3  2  1 Value               ASCII Chart
  75.      1                          $00               
  76.      2                          $00       !"#$%&'()*+,-./0123456789:;<=>?
  77.      3          ███             $10      @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
  78.      4       █████████          $38      `abcdefghijklmnopqrstuvwxyz{|}~
  79.      5    ██████   ██████       $6C      ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒ
  80.      6 ██████         ██████    $C6      áíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐
  81.      7 ██████         ██████    $C6      └┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
  82.      8 █████████████████████    $FE      αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■
  83.      9 ██████         ██████    $C6
  84.     10 ██████         ██████    $C6
  85.     11 ██████         ██████    $C6
  86.     12 ██████         ██████    $C6
  87.     13                          $00
  88.     14                          $00
  89.     15                          $00
  90.     16                          $00
  91.         8  7  6  5  4  3  2  1
  92.  
  93.  
  94.            The program will start at ASCII character 65, which is the
  95.          capital A.  To edit the character,  move the cursor with the
  96.          arrow keys and press [space] to toggle the value. You will
  97.          see the character change both in the editor window, in the
  98.          ASCII table window and anywhere else on the screen where that
  99.          character is written.
  100.  
  101.            You should save the font to file every time you finish editing
  102.          a character. Press F2 to save.
  103.  
  104.            To select a new character to edit pressing Tab. Use the arrow
  105.          keys to move and Return or Tab to select. You can switch between
  106.          editing and selecting quickly by pressing Tab.
  107.  
  108.            To quit the progam press Esc. You will be asked whether you
  109.          would like to save the font to file.
  110.  
  111.          The available commands are:
  112.  
  113.          F1    ■ Displays a help screen
  114.          F2    ■ Saves the font to file
  115.          F3    ■ Loads a new font from file
  116.          Alt-F ■ Sets the editing in fill mode. This means that when you
  117.                  move the cursor, the program will fill that position.
  118.          Alt-E ■ Sets the editing in erase mode. This is the opposite of
  119.                  fill mode.
  120.          Alt-N ■ Returns the editing to normal mode, where you have to
  121.                  press Space to toggle the value at the cursor.
  122.          Tab   ■ Switch between character editing and selection.
  123.          Esc   ■ Quit the program
  124.  
  125.  
  126.            When you have left the program, the font you have been working
  127.          on will still be active,  so if you want the original font back,
  128.          you can give the command
  129.  
  130.              MODE CO80
  131.  
  132.          at the DOS prompt.
  133.  
  134.  
  135.          5.HOW TO USE LOADFNT
  136.          ────────────────────
  137.  
  138.            This program just loads a font from file. Call it with the
  139.          command
  140.  
  141.              LOADFNT fontfile[.ext]
  142.  
  143.          just as with FE. To remove the font, give the command
  144.  
  145.              MODE CO80
  146.  
  147.  
  148.          6.HOW TO USE THE UNIT
  149.          ─────────────────────
  150.  
  151.            The unit contains three procedures / functions :
  152.  
  153.            procedure LoadOneChar(Number : byte;  var C : OneChar);
  154.            procedure LoadUserFont;
  155.            function ReadFontFile(FontFileName : string) : boolean;
  156.  
  157.  
  158.            The procedure LoadOneChar is used load one character (surprise)
  159.          into the memory. Number is the ASCII number, so if you want to
  160.          load a new definition of capital A, the number is 65. The VAR
  161.          definition of C is
  162.  
  163.  
  164.            type OneChar = array[1..16] of byte;
  165.  
  166.            var  C       : OneChar;
  167.  
  168.  
  169.          This is the bit pattern of the character. To define a capital A :
  170.  
  171.          Command in program:        Bit pattern:
  172.  
  173.                .
  174.                .
  175.           C[1] := $00;            {    00000000    }
  176.           C[2] := $00;            {    00000000    }
  177.           C[3] := $10;            {    00010000    }
  178.           C[4] := $38;            {    00111000    }
  179.           C[5] := $6C;            {    01101100    }
  180.           C[6] := $C6;            {    11000110    }
  181.           C[7] := $C6;            {    11000110    }
  182.           C[8] := $FE;            {    11111110    }
  183.           C[9] := $C6;            {    11000110    }
  184.          C[10] := $C6;            {    11000110    }
  185.          C[11] := $C6;            {    11000110    }
  186.          C[12] := $C6;            {    11000110    }
  187.          C[13] := $00;            {    00000000    }
  188.          C[14] := $00;            {    00000000    }
  189.          C[15] := $00;            {    00000000    }
  190.          C[16] := $00;            {    00000000    }
  191.  
  192.          LoadOneChar(65,C);
  193.                .
  194.                .
  195.  
  196.  
  197.            The two other utilities are usually used together to load an
  198.          entire font into memory. The function ReadFontFile will return
  199.          TRUE if there were no problems reading from the specified file.
  200.          The procedure LoadUserFont will load the font into memory.
  201.          Use the TP commands :
  202.  
  203.                .
  204.                .
  205.          if ReadFontFile('STANDARD.FNT') THEN
  206.            LoadUserFont;
  207.                .
  208.                .
  209.  
  210.