Hello, please help me. I tried using a costume font exactly as in the example code. I made a public/fonts folder and added the fonts. Even with the https://domain and full path it does not work. I get this error:
Uncaught (in promise) TypeError: r.readFileSync is not a function
And then the text just disappears and does not get rendered in my PDF.
Please, how to use a costume font? I wanna use Inter (free to use from google fonts) but on my server, not remote link.
I add the fonts like this:
Hello, please help me. I tried using a costume font exactly as in the example code. I made a public/fonts folder and added the fonts. Even with the https://domain and full path it does not work. I get this error:
Uncaught (in promise) TypeError: r.readFileSync is not a function
And then the text just disappears and does not get rendered in my PDF.
Please, how to use a costume font? I wanna use Inter (free to use from google fonts) but on my server, not remote link. I add the fonts like this:
And then use it here:
But it does not work... see upper error. I just want my whole PDF using this font.