Skip to content

Document consequences of not embedding fonts #10

@johnblommers

Description

@johnblommers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions