home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat1 / mkfontdir.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  4.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MKFONTDIR(1)                         MKFONTDIR(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        mkfontdir, fonts.dir, fonts.scale, fonts.alias - create an
  9.        index of X font files in a directory
  10.  
  11. SSYYNNOOPPSSIISS
  12.        mmkkffoonnttddiirr [_d_i_r_e_c_t_o_r_y_-_n_a_m_e ... ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.        For each directory argument, _m_k_f_o_n_t_d_i_r reads  all  of  the
  16.        font files in the directory searching for properties named
  17.        "FONT", or (failing that) the name of the file stripped of
  18.        its suffix.  These are converted to lower case and used as
  19.        font names, and, along with the name of the font file, are
  20.        written out to the file "fonts.dir" in the directory.  The
  21.        X server and font server     use  "fonts.dir"  to  find  font
  22.        files.
  23.  
  24.        The  kinds  of font files read by _m_k_f_o_n_t_d_i_r depend on con-
  25.        figuration parameters, but typically include  PCF  (suffix
  26.        ".pcf"),     SNF (suffix ".snf") and BDF (suffix ".bdf").  If
  27.        a font exists in multiple formats,  _m_k_f_o_n_t_d_i_r  will  first
  28.        choose PCF, then SNF and finally BDF.
  29.  
  30.        The  first  line of fonts.dir gives the number of fonts in
  31.        the file.  The remaining lines list the fonts  themselves,
  32.        one  per     line,    in  two fields.     First is the name of the
  33.        font file, followed by a space and the name of the font.
  34.  
  35. SSCCAALLAABBLLEE FFOONNTTSS
  36.        Because scalable font files do not usually include  the    X
  37.        font  name, the file "fonts.scale" can be used to name the
  38.        scalable fonts in the directory.     The fonts listed  in  it
  39.        are  copied  to fonts.dir by _m_k_f_o_n_t_d_i_r.    "fonts.scale" has
  40.        the same format as the "fonts.dir" file.
  41.  
  42. FFOONNTT NNAAMMEE AALLIIAASSEESS
  43.        The file "fonts.alias", which can be put in any    directory
  44.        of  the    font-path,  is    used to map new names to existing
  45.        fonts, and should be edited by hand.  The  format  is  two
  46.        white-space   separated     columns,  the    first  containing
  47.        aliases and  the     second     containing  font-name    patterns.
  48.        Lines  beginning     with  "!"  are     comment  lines     and  are
  49.        ignored.
  50.  
  51.        If neither the alias nor     the  value  specifies    the  size
  52.        fields of the font name, this is a scalable alias.  A font
  53.        name of any size that matches this alias will be mapped to
  54.        the same size of the font that the alias resolves to.
  55.  
  56.        When  a    font  alias  is     used,    the name it references is
  57.        searched for in the normal manner,  looking  through  each
  58.        font  directory in turn.     This means that the aliases need
  59.        not mention fonts in the same directory as the alias file.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MKFONTDIR(1)                         MKFONTDIR(1)
  71.  
  72.  
  73.        To  embed white space in either name, simply enclose it in
  74.        double-quote marks; to embed double-quote  marks     (or  any
  75.        other character), precede them with back-slash:
  76.  
  77.        "magic-alias with spaces"     "\"font name\" with quotes"
  78.        regular-alias        fixed
  79.  
  80.        If the string "FILE_NAMES_ALIASES" stands alone on a line,
  81.        each file-name in the directory (stripped of  its  suffix)
  82.        will be used as an alias for that font.
  83.  
  84. FFIILLEESS
  85.        ffoonnttss..ddiirr      List  of    fonts  in  the    directory and the
  86.               files  they  are    stored    in.   Created  by
  87.               _m_k_f_o_n_t_d_i_r.   Read     by the X server and font
  88.               server each time the font path is set  (see
  89.               xset(1)).
  90.  
  91.        ffoonnttss..ssccaallee    List  of    scalable  fonts in the directory.
  92.               Contents are copied to fonts.dir by _m_k_f_o_n_t_-
  93.               _d_i_r.
  94.  
  95.        ffoonnttss..aalliiaass    List  of    font name aliases.  Read by the X
  96.               server and font server each time    the  font
  97.               path is set (see xset(1)).
  98.  
  99. SSEEEE AALLSSOO
  100.        X(1), Xserver(1), xfs(1), xset(1)
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.