Changes

Jump to navigation Jump to search
1,310 bytes added ,  08:26, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
== Century Gothic fails in texfont Manual ==
(Fix tested onThe manual for TeXfont: TeXFont version 2[http://www.2pragma-ade.1; afm2tfm version 8nl/general/manuals/mtexfont.1 (dvips(k) 5pdf mtexfont.94b); Windows XP)pdf]
Many guides to its application are available on the [[This Way - My Way#MyWay|My Way]] page. == Known problems == The problems may result from misbehaviour of programs called by TeXfont or from TeXfont itself. === 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 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 and you come up against an error is shown with reference to the Composite Characters section of the AFM file. The 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 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 [[http://tex.aanhet.net/afm2pl/ afm2pl]] and use texfont's <tt>--afmpl</tt> switch 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. === texfont fails on overlong AFM lines === afm2tfm chokes on lines in AFM files that are longer than 256 characters; these shouldn't occur, but e.g. Linotype's lawyers forced endless copyright notices in their AFM files.Just delete the lines starting with <tt>Comment Copyright</tt>, and you're done. You also choose option '''3.''' above because afm2pl will cause ignore the font installation to failexcess info without choking.(Maybe newer versions of afm2tfm fix this also.)
To fix the broken AFM files, open them 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 (there are 3 semicolons per line). For example, the line referenced above will now look like this:=== problems under Windows ===
[http://www.lcdf.org/type/ LCDF Typetools] have some problems under windows. For some unknown reason (most probably because kpsewhich didn't find adobe glyph list), I had to move <code>glyphlist.txt<pre/code>to <code>C:\usr\local\share\lcdf-typetools\glyphlist.txt</code>. There were some other problems as well.CC Aacute 2 ; PCC A 0 0 ; PCC acute 182 150 ;<== System requirements == In order to install an [[OpenType]] font, you will also need [http://www.lcdf.org/type/pre>LCDF Typetools].
After you have done this (There are probably more programs that need to all the CC linesbe installed, <tt>afm2tfm</tt> should work and texfont should complete successfullybut most of them are already shipped with standard TeX distributions.)
: The afm file is correct. See the afm specification. <tt>afm2tfm</tt> is broken and a bug should be reported. --[[UserCategory:Patrick Gundlach|pgOld Content]]

Navigation menu