1<h1>Error: missing font metrics file</h1>
2<p>
3Font metric file <tt><?php echo $_filename; ?></tt> for font <strong><?php echo $_typeface?></strong> missing. You must have AFM font metric files intalled on your server
4in order to use the <b>PS</b> output method. Metric files <i>may</i> be taken from Ghostscript distribution. (Note that you do NOT need
5the Ghostscript itself).
6</p>
7<table>
8<tr class="odd">
9<th width="20%">Problem</th><th>Solution</th>
10</tr>
11<tr class="even">
12<td>Metric files are not installed on your server</td>
13<td>
14Install either ghostscript-fonts or any other Type1 font package containing metric files. Edit
15.html2ps.config and config.inc.php to point to installed metric files.
16</td>
17</tr>
18<tr class="odd">
19<td>The <tt>TYPE1_FONTS_REPOSITORY</tt> points to incorrect directory.</td>
20<td>Edit config.inc.php; set the value of <tt>TYPE1_FONTS_REPOSITORY</tt> to directory where your font metric files reside.</td>
21</tr>
22<tr class="even">
23<td>You have no requested metric file.</td>
24<td>
25Probably you're using non-standard font package. HTML2PS is configured to work with fonts distributed with Ghostscript out-of-the-box.
26If you're using other fonts, edit .html2ps.config. <tt>metrics</tt> items should contain names of metric files you're using.
27</td>
28</tr>
29<tr class="odd">
30<td>You've forgot to register the AFM metric file for this font.</td>
31<td>
32Register the metric file according to the <a href="help/howto_fonts.html">HOWTO: Install custom fonts</a>.
33</td>
34</tr>
35<tr class="even">
36<td>AFM file is not readable by the script.</td>
37<td>
38Check if AFM file permissions allow this file to be read by all user accouts (or, at least, the user accout PHP is running on).
39</td>
40</tr>
41<tr class="even">
42<td>PHP safe_mode <a href="http://php.net/manual/features.safe-mode.php#ini.open-basedir">open_base_dir</a> restriction prevents AFM file to be opened.</td>
43<td>
44Copy AFM files to any available directory under the 'open_base_dir'. An alternative approach is to disable 'safe_mode'.
45</td>
46</tr>
47</table>
48