4.3 How to install and use OldStandard font in LuaTeX

These are step by step instruction how to inside and use OldStandard font in lualatex, with example latex file and generated PDF output.

The first step is to download the zip file to your TMP folder.

cd $HOME/TMP 
wget https://mirrors.ctan.org/fonts/oldstandard.zip 
unzip oldstandard.zip
 

The above creates folder oldstandard/

Now this tree needs to be moved to the local texmf where latex can find it. To do that I did

kpsewhich --var-value TEXMFLOCAL
 

And that gave /usr/local/texlive/texmf-local

Hence, next I did

cd /usr/local/texlive/texmf-local 
sudo cp -R $HOME/TMP/oldstandard/ .
 

The above copied the whole tree to texmf

>lsd #my own command which lists only folders 
drwxr-xr-x 11 root root 4096 Oct  6 11:31 ./ 
drwxr-xr-x  4 root root 4096 Jul 25 19:41 ../ 
drwxr-xr-x  4 root root 4096 Jul 25 19:41 bibtex/ 
drwxr-xr-x  3 root root 4096 Jul 25 19:41 doc/ 
drwxr-xr-x  3 root root 4096 Jul 25 19:41 dvips/ 
drwxr-xr-x  6 root root 4096 Jul 25 19:41 fonts/ 
drwxr-xr-x  3 root root 4096 Jul 25 19:41 metapost/ 
drwxr-xr-x 10 root root 4096 Oct  6 11:31 oldstandard/  ----> copied OK 
drwxr-xr-x  4 root root 4096 Jul 25 19:41 tex/ 
drwxr-xr-x  2 root root 4096 Jul 25 19:41 tlpkg/ 
drwxr-xr-x  2 root root 4096 Jul 25 19:41 web2c/
 

Ok, great. Now the next step is to do

sudo texhash 
 
    texhash: Updating /etc/texmf/ls-R... 
    texhash: Updating /usr/share/texmf/ls-R... 
    texhash: Updating /usr/share/texmf-dist/ls-R... 
    texhash: Updating /var/lib/texmf/ls-R... 
    texhash: Done.
 

So now the font are ready to be usd. I downloaded the file

wget https://mirrors.ctan.org/fonts/oldstandard/doc/oldstandard-mathtest.tex 
lualatex oldstandard-mathtest.tex 
 
   LaTeX Font Warning: Some font shapes were not available, defaults substituted.
 

And it compiled but with some warnings as above. But the PDF looks same as on web page. So it worked. See the above Latex file how to use the style and what packages to include. Basically need to add these to preamble

\usepackage{fontspec} 
\usepackage{OldStandard} 
\usepackage{unicode-math} 
\setmathfont{OldStandard-Math.otf}