Fonts
How to add and use Custom Fonts
Gotenberg
FROM gotenberg/gotenberg:7
USER root
COPY /local/path/to/{font}.ttf /usr/local/share/fonts/{font}.ttf
USER gotenbergWkHtmlToPdf
mPDF
Last updated
How to add and use Custom Fonts
FROM gotenberg/gotenberg:7
USER root
COPY /local/path/to/{font}.ttf /usr/local/share/fonts/{font}.ttf
USER gotenbergLast updated
// metadata
{
"custom-fonts": ["font-key-1", "font-key-2"]
}
// from your template
<style>
* {
font-family: "font-key";
}
</style>