How to place icons in pdfmake? Is there any Solution
I use an icon font. Complicated but possible.
In short:
pdfMake.fonts = {
Fontello: {
normal: 'fontello.ttf',
bold: 'fontello.ttf',
italics: 'fontello.ttf',
bolditalics: 'fontello.ttf'
}
}
icon: {
font: 'Fontello'
}
{ text: '', style: 'icon' }, //icon wifi text: [
{ text: 'î ƒ', style: 'icon' }, //icon gift
" my present"
]
this puts out: "[gift icon] my present"
Most helpful comment
I use an icon font. Complicated but possible.
In short:
icon: { font: 'Fontello' }{ text: '', style: 'icon' }, //icon wifithis puts out: "[gift icon] my present"