I am trying to generate a PDF file with Maltese Cross and Circle E icons with Unicode U+2720 and U+24BA respectively.
The pdf file is generated using pdfMake library for javascript. I am using Roboto which is the default font provided by pdfMake library. I also tried using custom fonts as shown in https://pdfmake.github.io/docs/fonts/custom-fonts-client-side/ However adding font "Arial Unicode" reduced the processing speed and also increased size of the build file.
Tried something like this:
pdfMake.fonts = {
yourFontName: {
normal: 'fontFile.ttf',
bold: 'fontFile2.ttf',
italics: 'fontFile3.ttf',
bolditalics: 'fontFile4.ttf'
},
anotherFontName: {
(...)
},
// example of usage fonts in collection
PingFangSC: {
normal: ['pingfang.ttc', 'PingFangSC-Regular'],
bold: ['pingfang.ttc', 'PingFangSC-Semibold'],
}
}
I am expecting trying to reduce the size of build file or make the unicodes available for any other fonts.Any help would be appreciated.!!