Changes

Jump to navigation Jump to search
== Century Gothic texfont fails in texfont with syntax error ==
(Fix tested Tested on: TeXFont version 2.2.1; afm2tfm version 8.1 (dvips(k) 5.94b); Windows XP)
If you are trying to get Monotype's '''Century Gothic''' installing a Type 1 font family to install (.pfb and .afm files) using texfont, you may run into an error at the <tt>afm2tfmtexfont</tt> stage of the process, where a syntax error is shown with reference to the Composite Characters section of the AFM file. The and you come up against an error may look something message like this:
<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 will cause the happened to me with Monotype's ''Century Gothic'' font installation to failfamily.You have 2 options:
To fix # get a fixed version of afm2tfm ('''NB''' I don't know if this exists yet);# edit the broken AFM filesto work around the problem. To take the second option, open them each <tt>.afm</tt> file in a text editor and find the section headed <tt>StartComposites</tt>. In each line in this section, up to the line <tt>EndComposites</tt>, make sure that there is a space ''before and after'' every semicolon as well as after (there are 3 semicolons per line). For example, the line referenced above will would now look like this:
<pre>
</pre>
After you have done this to all the <tt>CC </tt> lines, <tt>afm2tfm</tt> should work and texfont should complete successfully. : The afm file is correct. See the afm specification. <tt>afm2tfm</tt> is broken and a bug should be reported. --[[User:Patrick Gundlach|pg]]
21

edits

Navigation menu