4.4 How to install garamond fonts

THis was complicated., so I wrote the what I did below. In the latex file use this. THis is all on a Linux system. I am using lualatex and not pdflatex.

... 
\usepackage[T1]{fontenc} 
\usepackage[urw-garamond]{mathdesign} 
....
 

But just typing lualatex foo.tex gives this erorr

! error:  (type 1): cannot open file for reading 'ugmm8a.pfb'

These fonts do not come with tex live. So the following instructions shows what to do to get them.

On a terminal, typed, from some empty folder

wget https://tug.org/fonts/getnonfreefonts/install-getnonfreefonts
 

This downloaded install-getnonfreefonts in the folder.

Next, typed sudo "PATH=$PATH"  ./install-getnonfreefonts --sys --all

and the result is

Detected System: x86_64-linux 
Detected Installation: /usr/local/texlive/2018 
mkdir /usr/local/texlive/2018/texmf-dist/scripts/getnonfreefonts ...     [done] 
Installing texmf-dist/scripts/getnonfreefonts/getnonfreefonts.pl ...     [done] 
Installing texmf-dist/doc/man/man1/getnonfreefonts.1 ...                 [done] 
Installing texmf-dist/doc/man/man1/getnonfreefonts.man1.pdf ...          [done] 
md5sum: a9e772165e8fdb620bcf9c75c17facda getnonfreefonts.pl ...            [ok] 
md5sum: 49be4444054d85b6037d237552a7cea1 getnonfreefonts.1 ...             [ok] 
md5sum: f825d523d686dbecdc787535b40f09d0 getnonfreefonts.man1.pdf ...      [ok] 
Fixing File Permissions ...                                              [done] 
Creating symlink in 'bin/x86_64-linux' ...                               [done] 
mktexlsr: Updating /usr/local/texlive/2018/texmf-dist/ls-R... 
mktexlsr: Done.
 

Next, typed

sudo "PATH=$PATH" /usr/local/texlive/2018/bin/x86_64-linux/getnonfreefonts --sys  garamond
 

and it said

--2018-09-20 16:26:21--  https://www.tug.org/~kotucha/getnonfreefonts/getfont.pl 
Resolving www.tug.org (www.tug.org)... 91.121.174.77 
Connecting to www.tug.org (www.tug.org)|91.121.174.77|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 33001 (32K) 
Saving to: getfont.pl 
 
getfont.pl                            100%[=======================================================================>]  32.23K  --.-KB/s    in 0.1s 
 
2018-09-20 16:26:22 (296 KB/s) - getfont.pl saved [33001/33001] 
------------------------------------------------------ 
Installation directory: /usr/local/texlive/texmf-local 
------------------------------------------------------ 
=================== 
Package 'garamond': 
=================== 
 
Downloading 'http://mirrors.ctan.org/fonts/urw/garamond.zip' 
--2018-09-20 16:26:22--  http://mirrors.ctan.org/fonts/urw/garamond.zip 
Resolving mirrors.ctan.org (mirrors.ctan.org)... 2a01:488:67:1000:b01c:36b8:0:1, 176.28.54.184 
Connecting to mirrors.ctan.org (mirrors.ctan.org)|2a01:488:67:1000:b01c:36b8:0:1|:80... connected. 
HTTP request sent, awaiting response... 302 Found 
Location: http://mirror.las.iastate.edu/tex-archive/fonts/urw/garamond.zip [following] 
--2018-09-20 16:26:30--  http://mirror.las.iastate.edu/tex-archive/fonts/urw/garamond.zip 
Resolving mirror.las.iastate.edu (mirror.las.iastate.edu)... 129.186.138.51 
Connecting to mirror.las.iastate.edu (mirror.las.iastate.edu)|129.186.138.51|:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 393158 (384K) [application/zip] 
Saving to: garamond.zip 
 
garamond.zip                          100%[=======================================================================>] 383.94K   708KB/s    in 0.5s 
 
2018-09-20 16:26:36 (708 KB/s) - garamond.zip saved [393158/393158] 
 
                                                                [download done] 
Checking integrity of file 'garamond.zip'...                               [ok] 
 
a60beaf12c12c69eeb8fdc82bd481949  garamond.zip                      [MD5sum ok] 
 
Extracting 'ugm.zip' from 'garamond.zip'...                              [done] 
Extracting 'ugm.zip'...                                                  [done] 
Extracting 'garamond.zip'...                                             [done] 
Installing 'ugm.map'...updmap [WARNING]: resetting $HOME value (was /home/me) to root's actual home (/root). 
Creating new config file /usr/local/texlive/2018/texmf-config/web2c/updmap.cfg 
                                                  [done] 
Running 'mktexlsr /usr/local/texlive/texmf-local >/dev/null 2>/dev/null' ... [done] 
 
Updating map files (updmap-sys). Be patient...updmap [WARNING]: resetting $HOME value (was /home/me) to root's actual home (/root). 
                           [done]
 

Finally, now I can compile the latex file using lualatex foo.tex with the above packages, and not get the error showed at earlier above.

These look like nice fonts.