-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Installing Custom Fonts in Docker for PDF Templates #1406
Comments
hi @justusweigmann , at the moment, the only way would be to add the fonts in https://github.com/alfio-event/alf.io/tree/main/src/main/resources/alfio/font and build from scratch. As a security measure, we don't allow arbitrary fonts to be added at runtime. But we are open to find a good way to open this possibility. (for example mounting a docker volume with the fonts?) |
Hey @syjer, Thank you for the quick response. I'll look into building Alf.io from scratch myself then. I'm currently using the Docker container, and as you describe the manual font process, theoretically the volume mapping to the fonts folder should look like this: And when restarting the container, theoretically the new data in the folder should be available in Alf.io. I will try this option as well; maybe that's the fix. |
So I got the following logs after mapping the Docker Volume Folder to the Host: Problem now is that Alf.io is not able to use the fonts: I also tried: I think that this is only a permission issue. Should be an easy fix. |
Hey all,
I noticed that the PDF Template function is referring in the font face to a specific .ttf font file:
@font-face {
font-family: 'DejaVu Sans';
src: url('alfio-internal:/DejaVuSans.ttf');
}
Could anyone tell me how I can install a new font in the Docker container? That way, we can use our company's house font.
The text was updated successfully, but these errors were encountered: