It is clear from the mdpdf description that font embedding is not done in order to keep the PDF file size small. Only two fonts are included, Helvetica (four variants) and Courier (two variants). These are common fonts, and it's expected they are present on every operating system. All this is reasonable.
Believe it or not, PopOS 22.04 does not include a font called Courier or Courier-Bold. Who knew? The consequences of this are that Document Viewer displays a raft of the message "some font thing failed" in the console, and any code in the PDF that results from the Markdown syntax like sometext isn't displayed, only empty space suggests something is missing from the PDF display. Note that when one views the PDF file properties in Document Viewer it plainly notes that the six fonts used by mdpdf are not embedded.
Now on Ubuntu 25.10 the Courier font is pre-installed and the PDF produced looks fantastic.
Consider adding an abundance of documentation stressing the importance of the system having these six fonts installed:
- Helvetica
- Helvetica-Bold
- Helvetica-Oblique
- Helvetica-BoldOblique
- Courier
- Courier-Bold
It is clear from the
mdpdfdescription that font embedding is not done in order to keep the PDF file size small. Only two fonts are included, Helvetica (four variants) and Courier (two variants). These are common fonts, and it's expected they are present on every operating system. All this is reasonable.Believe it or not, PopOS 22.04 does not include a font called Courier or Courier-Bold. Who knew? The consequences of this are that Document Viewer displays a raft of the message "some font thing failed" in the console, and any code in the PDF that results from the Markdown syntax like
sometextisn't displayed, only empty space suggests something is missing from the PDF display. Note that when one views the PDF file properties in Document Viewer it plainly notes that the six fonts used bymdpdfare not embedded.Now on Ubuntu 25.10 the Courier font is pre-installed and the PDF produced looks fantastic.
Consider adding an abundance of documentation stressing the importance of the system having these six fonts installed: