Skip to content

Fix PDF export heading font fallback#6069

Open
alexwoo-awso wants to merge 1 commit intoBookStackApp:developmentfrom
alexwoo-awso:fix/pdf-export-heading-fonts
Open

Fix PDF export heading font fallback#6069
alexwoo-awso wants to merge 1 commit intoBookStackApp:developmentfrom
alexwoo-awso:fix/pdf-export-heading-fonts

Conversation

@alexwoo-awso
Copy link

@alexwoo-awso alexwoo-awso commented Mar 25, 2026

PDF exports used the heading font var which in DOMPDF fell back to base fonts lacking Polish glyphs, causing ? in titles. This PR adds a PDF-only heading font fallback to DejaVu Sans for h1-h6. Tested by exporting a page with a Polish title; characters render correctly.

Before
image
image

After
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant