Copyright 2007 TeX Users Group. You may freely use, modify and/or distribute this file. *********************************************************************** Using "PS" Type 1 fonts with DVIPS (file: dvipsfnt.txt) *********************************************************************** Some consider the documentation that comes with DVIPS `sparse' when it comes to instructions on using fonts in PS Type 1 format. Still, people who have *actually read* it, claim it is quite comprehensive :-). Please consult `dvips.tex', which comes with DVIPS (and perhaps `dvips.doc' written by G. Sawade). Section 11. `PSNFSS and DVIPS' of `dvips.doc,' shows that using PS Type 1 fonts with DVIPS and LaTeX 2e can be a non-trivial thing. [See http://tug.org/dvips for the latest manual.] * See notes at end on web resources relating to DVIPS and its documentation. You will find a discussion of font use in LaTeX 2e in Chapter 10 of the `LaTeX Graphics Companion' by Michel Goossens, Sebastian Rahtz, and Frank Mittelbach, published by Addison-Wesley ISBN 0-201-85469-4. ****************************************************************************** You may find that the method discussed here is simpler --- you don't neccessarily need two TFM and one VF file per font. Here is what you have to do to use fonts in Adode Type 1 format with DVIPS. Short Summary: ------------- (0) Make sure you have a recent copy of DVIPS. Handling of Type 1 fonts and font encoding has changed several times over the last few years. (1) Tell DVIPS where it can find the actual PFB or PFA font files. In the `config.ps' file, edit the line that starts with `H' (header), and add the proper path. This might be /texmf/fonts/type1 or some subdirectory thereof, such as /texmf/fonts/type1/mathtime. (2) Tell DVIPS how to map TFM file names into corresponding PostScript FontNames. A good way to do this is to use p+ at the end of `config.ps' to link to any new `psfonts.map' files you want to add (e.g. psfonts.lb, psfonts.mt, psfonts.ams, psfonts.em etc.). (3) If your PS Type 1 fonts are set up for a different encoding schemes than that assumed by TeX (wich is true for anything other than the Computer Modern fonts!), then you have to tell DVIPS to reencode the fonts. It is possible to do this in the `psfonts' map. (4) If your system needs `virtual fonts' to use PS Type 1 fonts then you need the corresponding VF files. In this case you have to edit the line in `config.ps' that starts with V (virtual fonts) to add the proper path. This might be /texmf/fonts/vf or some subdirectory thereof, such as /texmf/fonts/vf/mathtime. (5) Make sure that your TFM files are set up for the encoding you are using. (In the case of fonts supplied on diskette with TFM files, copy the TFM files from the appropriate sub-directory on the font diskette --- e.g. `texnansi' in the case of LY1 font encoding or `tex256' in the case of T1 encoding). The TFM files may go in some directory like /texmf/fonts/tfm or some subdirectory thereof, such as /texmf/fonts/tfm/mathtime. You can tell DVIPS where these are, using a line in `config.ps' that starts with T (TFM). Just make sure TeX uses the very same TFM files or trouble may ensue. (6) Make sure that your TeX source code is set up for the same font encoding. For example, \usepackage[LY1]{fontenc} or \usepackage[T1]{fontenc}. Note that the LaTeX 2e PSNFSS package provides extensive support for fonts. This support includes package files such as `lucidabr.dtx,' `lucidabr.ins,' `lucidabr.yy' and `mathtime.dtx' and `mathtime.ins' This may be *all* you need on a TeX system with strong scalable font support. On systems using virtual fonts, you will *also* need files from another part of the TeX Archive hierarchy which includes VF, TFM, and other files. In these notes reference is made to various configuration files. Where these file are depends on your particular directory structure. Since there is no standardization, only general guidelines can be given. Often settings of environment variables (like TEXMF) give important clues. Setting up the psfonts.map file: -------------------------------- (1) First of all, DVIPS needs to know that a font is a Type 1 font so it will not look for a bitmapped PK font file (or try and generate one!). It also needs to know the relationship between the name used for a font in TeX (i.e. the name of the TFM file) and the PostScript FontName. The mapping between these two names is given in the file `psfonts.map' (which may be in some directory like /usr/lib/texmf/dvips). This file lists TeX TFM file names and corresponding PS FontNames. e.g.: tir Times-Roman Fonts made for use with TeX (such as LucidaBright and MathTime) come with ready-made add-on files with names that typically start with `psfonts...' (psfonts.lb, psfonts.lbe, psfonts.mt, psfonts.cm, psfonts.ams, psfonts.ltx). For other fonts, file names and PS FontNames are given by the font foundry in its documentation for the font set. You can also look near the beginning of the AFM (or PFA) file for the `FontName' entry. You can add new lines for Type 1 fonts either directly to the end of an existing `psfonts.map' file, or, more conveniently, in another file that is called in at the end of the `config.ps' file, using something like: p +psfonts.lb You can append multiple files in this statement (use commas to separate). Put the `psfonts.xxx' files in the same directory as `config.ps' (2) Next --- if the font is not printer resident --- you have to ask DVIPS to actually include it in the PostScript file it produces. DVIPS can handle font files in the compact binary PFB, as well as the `ASCII' PFA format. You ask DVIPS to include the font file using `<' and the file name, e.g. tirsc Times-RomanSC