Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Custom Preview Font not rendered in PDF Export

Open classic0795 opened this issue 2 months ago • 1 comments

Markpad version

2.8.2

How did you install it?

Windows — installer (Markpad_…_setup.exe)

OS and version

Windows 11, version 25H2

What happens, and what you expected instead

This feature was working in the previous versions of Markpad, but recently it has not been rendering the custom fonts I used in the pdf. I request the devs to look into this. I've given the steps to reproduce this situation below

Steps to reproduce

  1. Set a custom font in the settings (in Preview).
  2. Open a new text file.
  3. Write some text and toggle Preview.
  4. Click Ctrl+Shift+P for exporting pdf.
  5. Open the exported pdf and check it with the preview in app.

The Markdown that triggers it


Screenshots, and anything else

PREVIEW SETTINGS Image

PREVIEW

Image

EXPORTED PDF FONT RENDERED THE DEFAULT FONT

Image

classic0795 avatar Sep 30 '26 11:09 classic0795

Fixed in #934, which is merged and ships in the next release, in a few days. The PDF lost the Preview font in 2.8.0, when it stopped printing the live window. The fix also restores the font size, the code font and its size, and the highlight colour, in both the PDF and the HTML export.

PathGao avatar Sep 30 '26 16:09 PathGao