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

How to change fonts in generated PDFs to cope with german Umlauts - how to change PDF Layouts #628

Open
heisenbol opened this issue Mar 18, 2022 · 3 comments

Comments

@heisenbol
Copy link

My problem is basically that in the generated PDFs, german umlauts for the Courier font are broken (displayed for example as " ). As I am on a hosted server, I can not install or replace the Courier font.

My question: how would I change the Courier font to something else? I see the "PDF-Layout" options, but could not find any documentation on how to add a new one or change an existing one.

I tried to play with the motionFixedFont setting in models/db/Motion.php, with no apparent result (could be a caching issue though).

I am on the latest software version of antragsgruen. I am not sure whether I use the LaTeX or PHP based rendering (I do have lualatex and pdfunite set in my settings, but do not know if these are actually used).

@CatoTH
Copy link
Owner

CatoTH commented Mar 19, 2022

Hi,
could you maybe send me such a sample pdf to [email protected]?
The fonts should actually come with the distribution, and are located in the directory vendor/tecnickcom/tcpdf/fonts/. At least if PHP based rendering is used. Which one is used depends on the template chosen at the motion type.

@heisenbol
Copy link
Author

thanks for the response. I'll send you a sample right away to your private address.
I do see various php and .z files in the folder you are mentioning. But I still do not know which generation method is used (PHP or latex). The PDF files have as "producer" property "TCPDF 6.4.4".

@heisenbol
Copy link
Author

is there anyone that can confirm this?

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