Skip to content

Conversation

@chentalia317-alt
Copy link

Fixes #81
This PR introduces fallback fonts to ensure emoji and symbol characters render properly in exported PDFs.

changes:

  1. Added NotoEmoji-Regular.ttf and NotoSansSymbols2-Regular.ttf under src/osfexport/font/; 2. Registered both fonts in PDF.__init__ (formatter.py);
  2. Wrapped emoji characters in wiki HTML with <font face="noto-emoji">…</font> before rendering;
  3. Verified using sample characters (📎🔥💡🤝🧠🧭); all render correctly as monochrome glyphs instead of missing boxes

notes:

Both fonts are distributed under the SIL Open Font License (OFL).
Adds ~1.2 MB to repository size; no visual or behavioral changes for non-emoji text.

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.

Some characters aren't rendered in export PDFs

1 participant