# Understanding font maps / Fonts in vanilla TeXLive installation on Ubuntu

I followed closely the instructions in this tutorial to install a fresh TeXLive on my Ubuntu system, including the fake package and the font cache instruction:

 sudo fc-cache -fsv


Still, I am unable to use the Garamond font which is supposed to be part of TeXLive.

This is demonstrated by the following simple file:

\documentclass{minimal}
\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}
\DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ }
\begin{document}
\normalfont
The quick brown fox jumps over the sleazy dog.
\end{document}


Which fails to generate a PDF with the following error

!pdfTeX error: pdflatex (file ugmr8a.pfb): cannot open Type 1 font file for rea
ding


Plain latex works just fine, but gain if I write dvipdf myfile.dvi I get the same error message:

dvips: ! Couldn't find font file ugmr8a.pfb


The tfm files seem to exist though:

find /usr/local/texlive/ -name "ugmr*"
/usr/local/texlive/2014/texmf-dist/fonts/tfm/public/mathdesign/mdugm/ugmr8a.tfm
/usr/local/texlive/2014/texmf-dist/fonts/tfm/public/mathdesign/mdugm/ugmri8a.tfm


Could the error be related to the instruction to remove Type 1 fonts in the tutorial?

I would greatly appreciate a direct answer solving this particular problem and/or a simple tutorial on how the KPS* and updmap work.

• this link seems broken – Yossi Gil Apr 17 '15 at 21:08
• Look at the extension: pdflatex doesn't complain about a .tfm but about a .pfb. The fonts are not part of texlive, but you can get them here ctan.org/tex-archive/fonts/urw/garamond – Ulrike Fischer Apr 17 '15 at 21:29
• I forgot: you can also use getnonfreefonts to install the fonts; tug.org/fonts/getnonfreefonts – Ulrike Fischer Apr 17 '15 at 21:52
• You need to use getnonfreefonts for the Garamond font used by mathdesign. You find instructions at tex.stackexchange.com/questions/47491/… (the question is about Mac OS X, but the answer is for generic Unix). – egreg Apr 17 '15 at 22:05
• Use getnonfreefonts-sys - do NOT use getnonfreefonts. @egreg means getnonfreefonts-sys really, I think. – cfr Apr 17 '15 at 22:31

Your installation was correct. If you try other fonts, you would encounter no problems. You just were unlucky enough to try the Garamond font first. The KPSE* family and the updmap are not the issue here.
Garamond is only partially included with TeXLive. The .tfm files are included. But .tfm, an acronym for the "TeX Font Metric", only provides the dimensions of the font, but not its contents. The actual content is found in .pfb files, an acronym for "Printer Font Binary", which is used for specifying the shapes of Adobe Type 1 fonts.
Now, the .pfb files are part of the Garamond package, as you can see by checking here. But, they are not part of Ubuntu installation, probably due to reasons of purity, i.e., free software and the such.