import pdfMake from 'pdfmake/build/pdfmake';
import pdfFonts from 'pdfmake/build/vfs_fonts.js';
pdfMake.vfs = pdfFonts.pdfMake.vfs;
pdfMake.fonts = {
myFont: {
normal: '../../../../assets/fonts/hiwua.ttf',
bold: '../../../../assets/fonts/hiwua.ttf',
italics: '../../../../assets/fonts/hiwua.ttf',
bolditalics: '../../../../assets/fonts/hiwua.ttf',
}
}
const docDefinition = {
content: [ ....... ],
defaultStyle: {
font: 'myFont'
}
how can I add my custom font and support the Amharic language?