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

[BUG] no matching font found in the system #547

Closed
sagar-kalburgi-ripcord opened this issue Feb 21, 2024 · 3 comments
Closed

[BUG] no matching font found in the system #547

sagar-kalburgi-ripcord opened this issue Feb 21, 2024 · 3 comments

Comments

@sagar-kalburgi-ripcord
Copy link

Description

When I use unipdf in a debian docker container to merge several PDF files, I get an error no matching font found in the system

But when I run the same logic locally on my Macbook I do not get this error.

Expected Behavior

Unipdf should not throw such error or need a way to mitigate the error. Do we need to install fonts in the Dockerfile? If so how do we do that?

Actual Behavior

Steps to reproduce the behavior:
Unable to specify steps to reproduce because it is only reproducible in a Kubernetes environment using our proprietary code.

@sagar-kalburgi-ripcord
Copy link
Author

To be more specific, the error is returned by a call to pdfWriter.Write()

@3ace
Copy link

3ace commented Feb 28, 2024

@sagar-kalburgi-ripcord on linux environment, you could try adding some fonts in one of the following folders:

  • ~/.fonts
  • ~/.local/share/fonts
  • /usr/local/share/applications
  • /usr/share/applications

@sagar-kalburgi-ripcord
Copy link
Author

Hi @3ace thanks, I did install some fonts and the issue seems to be resolved now

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

2 participants