Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with custom fonts not embedding in PDF export #6192

Open
slalomeuse opened this issue Dec 10, 2024 · 0 comments
Open

Issue with custom fonts not embedding in PDF export #6192

slalomeuse opened this issue Dec 10, 2024 · 0 comments

Comments

@slalomeuse
Copy link

Hi everyone,

I’m encountering a frustrating issue with Typora when exporting my Markdown files to PDF. I’m working on a PhD thesis in Markdown format, using a custom CSS file to style the document and specifying the Adobe Garamond Pro font. Here are the steps I’m following:

I’ve installed Adobe Garamond Pro on my system (Windows), and the font works perfectly in other software like Word or OpenOffice, where it embeds correctly in exported PDFs.

In Typora, I created a CSS file where the font is defined as follows:

body {
        font-family: "Adobe Garamond Pro", serif;
        font-size: 12pt;
        line-height: 1.5;
}

When viewing the document in Typora, the font renders correctly.
However, when I export the file as a PDF using Typora, Adobe Garamond Pro is not embedded in the resulting PDF. Instead, a generic replacement font seems to be used. When opening the PDF in Adobe Acrobat, the font appears as "T3Font" (T3Font_0 ; T3Font_1 ; T3Font_2)

What I’ve tried so far:

  • Verified that the font works correctly in other applications (Word, LibreOffice).
  • Modified the CSS file several times, testing different ways to call the font.

I’m looking for a native solution in Typora to ensure Adobe Garamond Pro is correctly embedded in the PDF during export.

Thank you very much for your help! This issue is really driving me crazy.

Best,

slalomeuse

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

No branches or pull requests

1 participant