Difference between revisions of "TeXfont - Old Content"
Jump to navigation
Jump to search
(extra option, and option 2 can be shortcutted) |
|||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
− | then you have probably run into a bug in your version of <tt>afm2tfm</tt>, which is a program called by the <tt>texfont</tt> script. This happened to me with Monotype's ''Century Gothic'' font family. You have | + | then you have probably run into a bug in your version of <tt>afm2tfm</tt>, which is a program called by the <tt>texfont</tt> script. This happened to me with Monotype's ''Century Gothic'' font family. You have 3 options: |
# get a fixed version of afm2tfm ('''NB''' I don't know if this exists yet); | # get a fixed version of afm2tfm ('''NB''' I don't know if this exists yet); | ||
# edit the AFM files to work around the problem. | # edit the AFM files to work around the problem. | ||
+ | # install [[http://tex.aanhet.net/afm2pl/ afm2pl]] and use texfont's <tt>--afmpl</tt> switch | ||
− | To take the second option, open each <tt>.afm</tt> file in a text editor and find the section headed <tt>StartComposites</tt>. | + | To take the second option, open a copy of each <tt>.afm</tt> file in a text editor and find the section headed <tt>StartComposites</tt>. Delete this entire section, up to and including the line <tt>EndComposites</tt> |
− | + | After you have done this to all the <tt>.afm</tt> files, <tt>afm2tfm</tt> should work and texfont should complete successfully. | |
− | |||
− | |||
− | |||
− | After you have done this to all the <tt> |
Revision as of 17:56, 28 February 2005
texfont fails with syntax error
(Tested on: TeXFont version 2.2.1; afm2tfm version 8.1 (dvips(k) 5.94b); Windows XP)
If you are installing a Type 1 font (.pfb and .afm files) using texfont, and you come up against an error message like this:
; expected: ! syntax error CC Aacute 2; PCC A 0 0; PCC acute 182 150; ^
then you have probably run into a bug in your version of afm2tfm, which is a program called by the texfont script. This happened to me with Monotype's Century Gothic font family. You have 3 options:
- get a fixed version of afm2tfm (NB I don't know if this exists yet);
- edit the AFM files to work around the problem.
- install [afm2pl] and use texfont's --afmpl switch
To take the second option, open a copy of each .afm file in a text editor and find the section headed StartComposites. Delete this entire section, up to and including the line EndComposites
After you have done this to all the .afm files, afm2tfm should work and texfont should complete successfully.