[Tex/LaTex] How tonstall Garamondx font properly? Don’t know how to create bitmap font for zgmr8r

fontsinstallingtexlive

I try to install the LaTeX package garamondx and compile the doc which comes with the package. For this, I downloaded garamondx.tds.zip from http://www.ctan.org/tex-archive/install/fonts, extracted the archive to $HOME/texmf and run texhash. updmap doesn't work for my local user, because

Directory "/var/lib/texmf/fonts/map/dvips/updmap" isn't writable

Unfortunately it doesn't work. When I try to run the provided minimal example, I get the return error code 70:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 zgmr8r
mktexpk: don't know how to create bitmap font for zgmr8r.
mktexpk: perhaps zgmr8r is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: /usr/bin/pdflatex (file zgmr8r): Font zgmr8r at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

Minimal example:

\documentclass{article}
\usepackage{garamondx}

\begin{document}
Hello world!
\end{document}

I'm using texlive2012.

Best Answer

If you already have a working TeX Live environment installed (with one of the methods listed here) you should install nonfree fonts (like garamondx) according to this guide.

In short, first you download the script and execute it (needs root privileges) with texlua install-getnonfreefonts. You'll see something like this

Detected System: x86_64-linux
Detected Installation: /usr/local/texlive/2012
mkdir /usr/local/texlive/2012/texmf/scripts/getnonfreefonts ...          [done]
Installing texmf/scripts/getnonfreefonts/getnonfreefonts.pl ...          [done]
Installing texmf/doc/man/man1/getnonfreefonts.1 ...                      [done]
Installing texmf/doc/man/man1/getnonfreefonts-sys.1 ...                  [done]
Installing texmf/doc/man/man1/getnonfreefonts.man1.pdf ...               [done]
Installing texmf/doc/man/man1/getnonfreefonts-sys.man1.pdf ...           [done]
md5sum: cf8aeec0477a28c0c32ba1166f8bd8f3 getnonfreefonts.pl ...            [ok]
md5sum: f850d910dd96ee27cecdb3772047d247 getnonfreefonts.1 ...             [ok]
md5sum: fb2b0f7699db8e627d4e26b730e94928 getnonfreefonts-sys.1 ...         [ok]
md5sum: 415b51f7c80a4abe8d0a667a04c9d525 getnonfreefonts.man1.pdf ...      [ok]
Fixing File Permissions ...                                              [done]
Creating symlinks in 'bin/x86_64-linux' ...                              [done]
texhash: Updating /usr/local/texlive/2012/texmf/ls-R... 
texhash: Done.

Then run getnonfreefonts -l for a list of available fonts:

arial-urw      Arial (URW)                                  [not installed]
classico       Classico (URW)                               [not installed]
dayroman       DayRoman (Apostrophiclabs)                   [not installed]
eurofont       Euro symbols (Adobe)                         [not installed]
garamond       GaramondNo8 (URW)                            [not installed]
garamondx      GaramondNo8 Expert (Michael Sharpe)          [not installed]
lettergothic   LetterGothic (URW)                           [not installed]
luximono       LuxiMono (Bigelow & Holmes)                  [not installed]
vntex-nonfree  VnTeX nonfree (Han The Thanh)                [not installed]
webomints      Webomints (Galapagos Design Group)           [not installed]

and finally getnonfreefonts garamondx (getnonfreefonts -a to install all nonfree fonts). enter image description here

Related Question