Skip to content

docs: document Pro Reports PDF font override filter#50

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/c0f00f42
Open

docs: document Pro Reports PDF font override filter#50
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/c0f00f42

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 14, 2026

Summary

Pro Reports no longer applies a forced DejaVu Sans PDF font override by default. Instead, custom template fonts (including @font-face) now flow through to Dompdf, and a new filter lets site owners opt back into a global PDF-only CSS override.

Changes

  • Updated the "Font Works in Preview but Not PDF" section of the custom report templates guide to describe the new default behavior.
  • Documented the new mainwp_pro_reports_pdf_font_override_css filter, including its arguments and a code example.
  • Added an example showing how to restore the previous DejaVu Sans behavior using the $legacy_style argument.

Context

Reflects the Pro Reports extension PR that made the PDF font override optional and filter-driven.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 14, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mainwp 🟢 Ready View Preview May 14, 2026, 6:00 PM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants