home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / pocketbk / developmen / fonts / FONTS.TXT < prev    next >
Text File  |  1992-06-18  |  3KB  |  102 lines

  1. The program wsfcomp.exe can be used to create font files (.fon files)
  2. from so-called "font source files" (.fsc files).
  3.  
  4. Eg to compile diary.fsc to produce diary.fon just type
  5.     wsfcomp diary
  6.  
  7. The format of font source files can be judged by looking at the
  8. example .fsc files supplied:
  9.     sys$norm.fsc    source of the Series3 system font
  10.     sys$bold.fsc    source of the Series3 bold font
  11.     sys$digt.fsc    source of the Series3 "digits" font
  12.     diary.fsc       special characters used in the Agenda display
  13.     shgraph.fsc     the "tiny" font used in the Spreadsheet
  14.     sh3.fsc         other special characters used by the Spreadsheet
  15.     bold.fsc        a "Greek" flavour version of sys$bold.fsc
  16.     norm.fsc        a "Greek" flavour version of sys$norm.fsc
  17.  
  18. A font source file contains a header section followed by patterns
  19. which make up the font, as in the following extract from the
  20. beginning of a font source file:
  21.  
  22.     *name System mono
  23.     *descent 2
  24.     *height 10
  25.     *maxwid 7
  26.     *flag ascii
  27.     *flag cp850
  28.  
  29.     *char 28
  30.     
  31.     100000000000
  32.     100001100000
  33.     100001100000
  34.     101111111100
  35.     100111111000
  36.     110011110111
  37.     000001100000
  38.     000000000000
  39.     111111111111
  40.     100000000000
  41.  
  42.     0000000
  43.     0000000
  44.     0001000
  45.     0001100
  46.     1111110
  47.     1111110
  48.     0001100
  49.     0001000
  50.     0000000
  51.     0000000
  52.  
  53.     0000000
  54.     0000011
  55.     0000011
  56.     0010011
  57.     0110011
  58.     1111111
  59.     1111111
  60.     0110000
  61.     0010000
  62.     0000000
  63.  
  64. The keywords have the following meanings:
  65. -----------------------------------------
  66.  
  67. *name           The font name (maximum length 16 characters)
  68.  
  69. *descent <n>    The descent for the font
  70.  
  71. *height <n>     The height for the font
  72.  
  73. *maxwid <n>     Not the real maximum width, but the width of the
  74.                 widest normal character
  75.  
  76. *flag           Some informational flags
  77.  
  78. *char <n>       Skip all characters up to the specified code. 
  79.                 Character codes start at 0 and follow sequentially
  80.                 until the next *char statement
  81.  
  82. The keyword "*special 1" may also be present, to specify a font
  83. suitable for "fast" blitting onto the screen.  If present, this
  84. keyword must come before the *height statement.  ("Fast" fonts must
  85. have all their widths less than 9 pixels.)
  86.  
  87. If the height of a character defined is less than that defined in the
  88. header, blank rows are added at the top.
  89.  
  90. Possible values for "*flag" (each one defined on its own line) are
  91. "ascii", "cp850", "bold", "italic", and "serif".
  92.  
  93. For some more details about fonts, see eg the section on gINFO in the
  94. Opl Programming Manual.
  95.  
  96. Note that only the first letter of keywords and flagnames is
  97. significant.  Thus "*max_width" and "*maxwid" have the same effect.
  98.  
  99. One tip when editing .fsc files is to temporarily change all '1's
  100. into graphics square characters (ascii 219, say), and all '0's into
  101. dots.  Then change them back when you're finished.
  102.