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

Custom fonts with spaces in them corrupt MS word file #3019

Open
dan-cooke opened this issue Mar 29, 2025 · 0 comments
Open

Custom fonts with spaces in them corrupt MS word file #3019

dan-cooke opened this issue Mar 29, 2025 · 0 comments

Comments

@dan-cooke
Copy link

There was a similar issue from the past

#2521 which reported this issue alongside another issue relating to docx not adding the fontTable.xml to the document.rels.xml

It seems that only the latter issue was fixed, and this original issue with spaces in the filename remains.

I believe it should be a simple fix, if you look at how MS word embeds custom fonts, it just names each font in the fonts/ dir as font1.odttf etc.

Workaround

I am having a look into this issue, as it seems that custom fonts with spaces do not work at all - using the workaround mentioned in this other issue replacing spaces with - does not seem to work.

The file is no longer corrupted, but the font families do not match up with font table properly in this intance

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