[tex-live] getnonfreefonts

Reinhard Kotucha reinhard.kotucha at web.de
Sun Oct 8 00:37:19 CEST 2006


Hi,
in TeXLive-2005 there had been a shell script called getnonfreefonts
which was supposed to download and install fonts which licenses do not
allow to put them on the CD (no-sell or no-modify restrictions).

I have now written this script in Perl in order to make it available
to Windows users too.

It would be nice if somebody can test it on Windows because I cannot
do it myself.

It should work with TeXLive-2005, the current svn version, or any
older version which provides an updmap which supports the '--enable'
option.  Additionally you need wget and unzip for Windows.

A statically linked version of wget for Windows with OpenSSL support
can be downloaded from:

    http://users.ugent.be/~bpuype/wget/wget.exe

The easiest way to install it is to put it into the TeXLive2005
bin/win32 directory.

You'll find setup-win32/unzip.exe on the TL-2005 install CD.  Please
copy it to the bin/win32 directory too.


getnonfreefonts can be downloaded from:

    ftp://ftp.tug.org/pub/tex/getnonfreefonts/getnonfreefonts
    ftp://ftp.tug.org/pub/tex/getnonfreefonts/getnonfreefonts-sys

Actually both files are identical.  You can download one of them and
make a copy.  The behaviour depends on the filename.

    getnonfreefonts installs files in TEXMFHOME
    getnonfreefonts-sys installs files in TEXMFLOCAL

Put the files into the current directory and run

    perl getnonfreefonts[-sys] --help

to get more information.

*** Note that there is no uninstall option. ***

getnonfreefonts[-sys] first looks for environment variables TMP, TEMP,
and TMPDIR, creates a subdirectory "getfont-<PID>" and removes it when
it is finished.  It would be nice to know whether this works properly
on Windows.

Usually it is sufficient to run getnonfreefonts[-sys] to install the
fonts.  It downloads and executes the program getfont2006.

I tried to support filenames with spaces.  It seems to work on UNIX
but I don't know whether it works on Windows.

If you want to test it, you can download

   ftp://ftp.tug.org/pub/tex/getnonfreefonts/getfont2006

to your current working directory.

getfont2006 expects the same commmand-line options as getnonfreefonts
However, --installroot is set by getnonfreefonts and has to be set
manually if getfont2006 is invoked directly.  And getfont2006 does not
have a --help option because it is supposed to be launched by
getnonfreefonts.

If getfont2006 is invoked by getnonfreefonts it installs the map
files, otherwise it only shows the command instead of executing it.

For instance, you can say:

    perl getfont2006 --installroot="some dir/mytexmf" --all --force

Then the packages are downloaded to the current working directory if
they do not already exist and are installed in the specified
directory.

--installroot can contain an absolute or relative path but please note
that you always have to use forward slashes as directory separators.
For instance:

    --installroot="some dir/mytexmf"
    --installroot="c:/some dir/mytexmf"
    --installroot="//foo/some dir/mytexmf"

This is what getfont2006 currently installs:

   ftp://ftp.tug.org/pub/tex/getnonfreefonts/texmf-2006.html

The fonts which are currently supported might change later.  I will
add vntex-nonfree when it is officially released.  I also will add
Adobe Utopia if the fonts cannot be part of the TL distribution.

If there are other fonts I can add, please let me know.  It is
required that these fonts can be freely distributed and used.  It is
not required that you are allowed to modify them.

Any feedback is welcome.  Please tell me which OS you are using.

A final decision how to invoke getnonfreefonts on Windows has not been
made yet.  There are a few ways how to do it:

    * Use perlcc to convert it to C and create getnonfreefonts.exe.
    * Put the Perl code into a .bat file. 
    * Provide a program which determines argv[0] and executes perl
      accordingly. 

At the moment you have to say "perl getnonfreefonts ...".

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the tex-live mailing list