I can get you past this part but fonts are still not available after successful dump_dir.
First, make sure your fonts are converted to ttf.
Create a new folder /var/www/html/ninja/public/fonts/invoice-fonts
Inside the invoice-fonts folder, create a folder of the name of your font, i.e. /var/www/html/ninja/public/fonts/invoice-fonts/NotoSansTC then add your ttf fonts in this folder.
Make sure you have installed grunt in the /var/www/html/ninja directory
Then run grunt dump_dir
While this creates the NotoSansTC.js, the fonts are still unavailable in Invoice Ninja invoice design page. I’ve add the fonts to Ubuntu, cleared browser and server cache to no avail.
InvoiceNinja team, please replace the ugly, ill-spaced UKai with Google’s NotoSansCJK fonts. Please! Adding a new font per your instructions is not possible.
Warning:
File ‘fonts/NotoSansTC/NotoSansTC-Black.otf’ not found in virtual file system
So I fixed that and now the NotoSansTC can be used and shows in the invoice preview. Problem now is that the Chinese text appears normal, but English text is one letter per line vertically, making the document many pages and illegible.
How can I tell this pdf generator how to use the English font? Letters should not be spaced vertically but horizontally. Or can I modify the font file to do this?