If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this should not be a problem, but at times they include misleading Meta-information that leads to a strange error in the PDF.
BrandonText-Regular
and BrandonText-Bold
. (With flawed Meta-information)In the end, my font-faces looked like this:
@font-face {
font-family: 'BrandonText';
src: url(data:font/opentype;base64,.....) format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'BrandonText';
src: url(data:font/opentype;base64,.....) format('opentype');
font-weight: bold;
font-style: normal;
}