Re: Metrics and map file for Adobe Utopia

George White <[email protected]> Sun, 23 Oct 2005 10:18:29 -0300
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
Quoting Reinhard Kotucha <[email protected]>:

> The current version of the script is at:
> 
>     http://ms25.ath.cx/getfont.gz

Thanks for taking this on.

Small typo in line 151:  lcftp --> lftp

[gwhite@cerberus ~]$ export CTAN="ftp://tug.ctan.org"
[gwhite@cerberus ~]$ getfont utopia
-------------------------------------------------------
FTP client:    lftp
Get afm files: false
Temporary dir: /tmp/getfont4160
CTAN node:     ftp://tug.ctan.org
Font:          utopia
Install at:    /home/gwhite/texmf
-------------------------------------------------------
/home/gwhite/Desktop/getfont: line 151: lcftp: command not found
unzip:  cannot find or open utopia.zip, utopia.zip.zip or utopia.zip.ZIP.
cp: cannot stat `utopia/*.pfb': No such file or directory
texhash: Updating /home/gwhite/texmf/ls-R...
texhash: Done.

After editing line 151 it works for me (Fedora Core 4). 

Line 139 may cause trouble:

       TMPDIR="${TMP-/tmp}/getfont$$"

Some sites don't let users write in /tmp.  If they set TMP to something
writable, then fine, but I have also seen TMPDIR=$HOME/tmp on such systems.

Some administrators won't like the use of the PID for the temporary
directory.  Is there anyone who doesn't have mktemp these days?  Getfont
probably isn't a target, but it _is_ the sort of tool people like to 
adapt for their own applications.

It might be worth mentioning in the documentation that the Utopia fonts
are often installed by X and can be made available to TeX via symbolic links
(and the hateful "no modifications" license insures that the fonts will
be the same!).

-- 
George N. White III
Head of St. Margarets Bay, Nova Scotia