const ourFont = await fetch(path_to_font).then((res) => res.arrayBuffer())
pdfDoc.registerFontkit(fontkit)
const font = await pdfDoc.embedFont(ourFont)
| In Generated PDF | In Word |
|---|---|
|
|
|
There is unwanted space in half-characters with Mangal type fonts, the meanwhile same font works perfectly in MS Word, Is there something I'm missing while embedding this font?
Thanks in Advance.
I was able to fix this by adding {subset: true} while embedding font.
Most helpful comment
I was able to fix this by adding
{subset: true}while embedding font.