home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / deskjet / djfonfmt.arc / DJFONT.TXT
Text File  |  1988-04-14  |  5KB  |  136 lines

  1.  
  2.  
  3. The following descriptions of Deskjet softfont formats was condensed from the
  4. Deskjet Software Developer's Guide.  It does not include complete information
  5. about the Deskjet softfont format; it merely provides enough information for a
  6. user to convert a Laserjet softfont to Deskjet format.
  7.  
  8. There are two descriptor areas for each Deskjet softfont, just like the
  9. Laserjet softfonts.  The Font Descriptor is a part of the  <esc> )s#W  escape
  10. sequence to create a font.  The Character Descriptor follows the Laserjet
  11. escape sequence format  <esc> (s#W  and is used when downloading a character.
  12.  
  13. The same escape sequences are used in a softfont file in the same order.  The
  14. major differences are that the Deskjet requires that the softfonts be
  15. downloaded in ascending character order, and the descriptor formats are
  16. different.  So, basically, if the descriptors are modified, a Laserjet softfont
  17. can be converted to Deskjet format.
  18.  
  19. The following is a brief outline of both descriptors.  Two-byte fields are in
  20. word format, one-byte fields in byte format.
  21.  
  22.  
  23.  
  24.                         DESKJET FONT DESCRIPTOR FORMAT
  25.  
  26.  
  27.  
  28.  Bytes        Field                      Description
  29. -------    --------------------      ------------------------------------------
  30.  
  31.  0-1       Descriptor Size           Value always 64 for Deskjet (64 decimal)
  32.  
  33.  2-3       Font Identification       Similar to Laserjet symbol set ID. Number
  34.                                      used is (symbol set field #  x  256) +
  35.                                      (ASCII value for terminator). Note this is
  36.                                      slightly different than Laserjet.
  37.  
  38.  4-5       Placement Level           Should be 100 decimal
  39.  
  40.  6-7       Font Spacing              0 = fixed   1 = proportional
  41.  
  42.  8-9       Pitch                     value =  ( CPI  x  100 )
  43.  
  44. 10-11      Height                    value = ( height in points  x  100 )
  45.  
  46. 12-13      Style                     0 = upright   100 = Italic
  47.  
  48. 14-15      Stroke Weight             value = ( LJ stroke weight  x  100 )
  49.  
  50. 16-17      Typeface                  value = ( LJ typeface  x  100)
  51.  
  52. 18-19      Quality                   200 for Laserjet fonts
  53.  
  54.   20       Font Type                 0 = 7 bit  (only chars 33-127)
  55.                                      1 = 8 bit  (only chars 22-127 and 160-255)
  56.                                      2 = IBM    (only chars 1-6, 16-26, 28-255)
  57.  
  58. 21-22      Space Width               Width of space char  (in 1/3600 inch)
  59.  
  60.   23       Unidirectional Flag       0 for Laserjet fonts
  61.  
  62.   24       Aux Compressed Flag       0 for Laserjet fonts
  63.  
  64.   25       Aux Hidden Chars Flag     0 for Laserjet fonts
  65.  
  66.   26       Half Pitch Flag           1 for Laserjet fonts
  67.  
  68.   27       Double Pitch Flag         1 for Laserjet fonts
  69.  
  70.   28       Half Height Flag          1 for Laserjet fonts
  71.  
  72.   29       Bold Flag                 0 = allow algorithmic boldfacing
  73.                                      1 = disallow algorithmic boldfacing
  74.  
  75.   30       Draft Flag                0 = allow algorithmic draft print
  76.                                      1 = disallow algorithmic draft print
  77.  
  78.   31       Bold Method               0 = one dot column of bolding
  79.                                      1 = two dot columns of bolding
  80.  
  81.   32       Dot Resolution            0 for Laserjet fonts
  82.  
  83.   33       Orientation               0 = portrait    1 = landscape
  84.  
  85.                                      NOTE: Landscape is not same as Laserjet.
  86.                                            If Landscape is selected, it will
  87.                                            merely rotate characters. It is up
  88.                                            to the application to correctly
  89.                                            send characters to produce a true
  90.                                            landscape orientation!
  91.  
  92. 34-35      Baseline Offset           value = ( LJ baseline offset  x  100 )
  93.  
  94. 36-37      Tall Font Offset          0 for Laserjet fonts
  95.  
  96. 38-39      Single Underline Mask     15 for Laserjet fonts
  97.  
  98. 40-41      Double Underline Mask     3855 for Laserjet fonts
  99.  
  100. 42-43      Page Hold Timer           Time to hold page before it is ejected
  101.  
  102. 44-59      Font Name                 ASCII name of font
  103.  
  104. 60-61      Data Length               Length of font tables and dot data
  105.  
  106. 62-63      Reserved                  must be 0
  107.  
  108.  
  109.  
  110.                       DESKJET CHARACTER DESCRIPTOR FORMAT
  111.  
  112.  
  113.  
  114.  Bytes        Field                      Description
  115. -------    --------------------      ------------------------------------------
  116.  
  117.   0        Character Format          must be 5
  118.  
  119.   1        Reserved                  must be 0
  120.  
  121.   2        Descriptor Size           must be 6
  122.  
  123.   3        Character Type            0 for Laserjet fonts
  124.  
  125.   4        Normal Width              normal character width (in .06 inch)
  126.  
  127.   5        Compressed Width          compressed character width (in .06 inch)
  128.  
  129.   6        Left Proportional Pad     space at left of char (in .06 inch)
  130.  
  131.   7        Right Proportional Pad    space at right of char (in .06 inch)
  132.  
  133.  
  134.  
  135.  
  136.