| 1 |
DESCRIPTION |
| 2 |
|
| 3 |
afm2pl is meant to be a partial replacement for afm2tfm, on which it |
| 4 |
is based. Its default action is to convert an afm file to a tfm |
| 5 |
file, with preservation of kerns and ligatures (with afm2tfm, |
| 6 |
preserving kerns and ligatures is possible only in a roundabout |
| 7 |
way). |
| 8 |
|
| 9 |
For PostScript text fonts, Y&Y's texnansi is the recommended |
| 10 |
encoding to be used with afm2pl. This gives you a good character |
| 11 |
set with all the more important accented characters and many |
| 12 |
typographic symbols available as single characters, without a need |
| 13 |
for either virtual fonts or a separate text companion font. |
| 14 |
|
| 15 |
Full LaTeX support for this encoding is available in the form of the |
| 16 |
texnansi package, which is already part of TeX Live and teTeX. |
| 17 |
|
| 18 |
The distribution also contains uppercased and lowercased versions of |
| 19 |
texnansi, [afm2pl-]texnanuc.enc and [afm2pl-]texnanlc.enc, to allow |
| 20 |
font-based rather than macro-based uppercasing and |
| 21 |
lowercasing. LaTeX macro support for this, in the context of |
| 22 |
LaTeX2e's font handling, is not hard; the key is to treat |
| 23 |
all-uppercase and all-lowercase as new shapes. |
| 24 |
|
| 25 |
USAGE |
| 26 |
|
| 27 |
This is the help message printed by afm2pl: |
| 28 |
|
| 29 |
Usage: afm2pl [OPTIONS]... FILE[.afm] [FILE[.pl]] |
| 30 |
Convert an Adobe font metric file to a TeX font property list. |
| 31 |
|
| 32 |
-p ENCFILE Read/download ENCFILE for the PostScript encoding |
| 33 |
-o Use octal for all character codes in the pl file |
| 34 |
-e REAL Widen (extend) characters by a factor of REAL |
| 35 |
-s REAL Oblique (slant) characters by REAL, generally <<1 |
| 36 |
-m INTEGER Letterspace by INTEGER/1000 em |
| 37 |
-V Verbose output; i.e. report on missing glyphs |
| 38 |
--help Print this message and exit. |
| 39 |
--version Print version number and exit. |
| 40 |
|
| 41 |
See the man page for full documentation. |
| 42 |
|
| 43 |
|
| 44 |
Email bug reports to [email protected] |
| 45 |
|
| 46 |
|
| 47 |
INSTALLATION FROM SOURCE |
| 48 |
|
| 49 |
Afm2pl is part of the TeX Live source tree. Standalone compilation |
| 50 |
may still work, but is no longer supported. |
| 51 |
|
| 52 |
TROUBLESHOOTING |
| 53 |
|
| 54 |
Problem: the fonts appear to be missing or I get the wrong characters. |
| 55 |
|
| 56 |
Solution: check your mapfiles. Starting TeX Live 2009, the |
| 57 |
afm2pl-specific .enc files got `afm2pl-' prepended to their |
| 58 |
names. Although you don't have to add this prefix to the |
| 59 |
command-line, the prefix is necessary in the mapfile. You may have |
| 60 |
to edit your mapfiles accordingly. |
| 61 |
|
| 62 |
Also, afm2pl-ot1tt.enc is brought in conformance with the monospaced |
| 63 |
version of OT1, and ot1csc.enc has been removed altogether. |
| 64 |
|
| 65 |
Problem: I get warnings |
| 66 |
|
| 67 |
I had to round some heights by 10.0000000 units. |
| 68 |
I had to round some depths by 2.0000000 units. |
| 69 |
|
| 70 |
Solution: This is not a problem. afm2pl uses units of 1/1000 times |
| 71 |
the design size, so these rounding errors are really quite small. |
| 72 |
|
| 73 |
Problem: Characters are missing. I am using T1 encoding. |
| 74 |
|
| 75 |
T1 encoding requires virtual fonts, since it encodes many accented |
| 76 |
characters which aren't available as single characters in commercial |
| 77 |
Type 1 fonts. Afm2pl doesn't create virtual fonts. By using texnansi |
| 78 |
instead, you force TeX to compose these missing characters from an |
| 79 |
accent and the base character. |
| 80 |
|
| 81 |
Problem: Letterspacing doesn't work |
| 82 |
|
| 83 |
Explanation: In this version, letterspacing is implemented with |
| 84 |
kerns. However, the tfm format accomodates only about half the |
| 85 |
amount of kerning pairs needed for full letterspacing. I have tried |
| 86 |
hard to create a set which falls within these boundaries but still |
| 87 |
contains all kerning pairs which are likely to matter. If you use a |
| 88 |
different encoding, you might exceed these boundaries and as a |
| 89 |
consequence lose all glyphs and kerns. |
| 90 |
|
| 91 |
Consider using the tracking option of the microtype package instead. |
| 92 |
|
| 93 |
June 21 2009 |
| 94 |
|
| 95 |
Siep Kroonenberg |
| 96 |
[email protected] |
| 97 |
http://tex.aanhet.net/afm2pl/ |