System Administration Guide: Solaris Printing

ProcedureHow to Install Host-Resident PostScript Fonts

  1. Log in as superuser, lp, or assume an equivalent role on the print server or print client.

  2. Create the hostfontdir directory.


    # cd /usr/share/lib
    
    1. Change to the /usr/share/libdirectory.


      # cd /usr/share/lib
      
    2. Create the hostfontdir directory, if this directory does not already exist.


      # mkdir hostfontdir
      
    3. Change the permissions on the hostfontdir directory to 775.


      # chmod 775 hostfontdir
      
  3. Create a directory for a new typeface, if the directory does not already exist.


    # mkdir typeface
    
  4. Copy the font file to the appropriate directory.


    # cp filename /usr/share/lib/hostfontdir/typeface/font
    
  5. Add to the map file the name of the font and the name of the file in which it resides.

    1. Change to the /usr/share/lib/hostfontdir directory.

    2. Edit the map file by using a text editor such as the vi editor.

      Add a one-line entry for each font that you want to add to the file. Put the font name first, followed by a space, followed by the name of the file where the font resides. For example:


      Palatino-Bold /usr/share/lib/hostfontdir/palatino/bold
      
    3. Save the file.

      When an example entry exists in the map file on the appropriate system, users can apply the font (for example, Palatino Bold) to their print jobs. When users submit a print request that contains this font, the LP print service appends a copy of the /usr/share/lib/hostfontdir/palatino/bold file to that file before sending it to the printer.

  6. If you are using the troff program, you must create new width tables for this font in the standard troff font directory.