I'd like to achieve the following: a user should be able to grab a copy of a given directory, place that anywhere in his home directory, and run
make to build LaTeX documents in that tree without modifying his own configuration. The documents in that tree depend on custom truetype fonts, and the provider of these fonts suggests using
updmap-sys to install these. But requiring users to install these fonts system-wide is unacceptable, and even having to install them locally should be avoided.
The best I could find so far are the following rules, added to my
export TEXMFHOME=$(CURDIR)/texmf export TEXINPUTS=$(CURDIR)/styles:$(CURDIR)/texmf: texmf/web2c/updmap.cnf: texmf/fonts/map/dvips/tumhelv/tumhelv.map @mkdir -p $(@D) @echo -n "" > $@ updmap --cnffile $(TEXMFHOME)/web2c/updmap.cnf \ --dvipdfmxoutputdir $(TEXMFHOME)/fonts/map/dvipdfmx/updmap \ --dvipsoutputdir $(TEXMFHOME)/fonts/map/dvips/updmap \ --pdftexoutputdir $(TEXMFHOME)/fonts/map/pdftex/updmap \ --pxdvioutputdir $(TEXMFHOME)/fonts/map/pxdvi/updmap \ --setoption dvipsPreferOutline=true \ --setoption pdftexDownloadBase14=true \ --enable Map=customFont.map
This apparently does install the fonts in the
texmf subtree of the directory where my
Makefile resides. I haven't even begun checking whether the font is actually available, because suddenly my
pdflatex starts using bitmap font instead of outline fonts. I added the two
--setoption lines above, copied from the
updmap.cnf of my main TeXlive
texmf tree, but they changed nothing.
I also noticed that
updmap will create a file
~/Library/texlive/2012/texmf-var/web2c/updmap.log (on OS X), but I guess a single additional environment variable should take care of that.
How can I use environment variables to install a font without modifying the user's configuration, and still use outline fonts in my PDF files?