The PDF standard references 14 standard fonts, which are not distributed with it. Due to dubious practices by Adobe, it is not safe to publish them in the viewer.
You can download them here and unpack with
tar -xf fonts.tar.bz
placing the fonts directory in repository directory.
Finally set the environment variable STANDARD_FONTS to the fonts folder:
export STANDARD_FONTS=$pwd/fonts
Alternativly you can run ./download_fonts.sh to get them from this old debian release of the Adobe PDF reader. And AdobePiStd.ttf can be found on the internet as well:
Note that the Arial* files are not included here. Your options are:
- get them from somewhere else
- skip them (see note below)
Over all you will need in the fonts directory:
CourierStd.otfCourierStd-Bold.otfCourierStd-Oblique.otfCourierStd-BoldOblique.otfMinionPro-Regular.otfMinionPro-Bold.otfMinionPro-It.otfMinionPro-BoldIt.otfMyriadPro-Regular.otfMyriadPro-Bold.otfMyriadPro-It.otfMyriadPro-BoldIt.otfSY______.PFBAdobePiStd.otfArial-BoldMT.otfArialMT.ttfArial-ItalicMT.otf
Note: If you do not have this exact list, update STANDARD_FONTS in pdf/src/fonts.rs accordingly.
Once you have the fonts, you can enable the standard-fonts feature for the pdf crate.