Hello,
I have been trying to add a TrueType font using the following (porto is a Base64 string of a ttf file):
const params = {
pageOrientation: 'Landscape',
fileName: 'somefile.pdf',
theme: {
header: { font: new PdfTrueTypeFont(porto, 12) },
caption: { font: new PdfTrueTypeFont(porto, 10) },
record: { font: new PdfTrueTypeFont(porto, 9) }
}
}
this.$refs.myGrid.pdfExport(params)
But this doesn't work and is not very convenient. I would like to define the font I want using a woff or ttf file. How should I proceed ?
Thank you.