The wkhtmltox npm library uses the binary in the server, so it will only render fonts that are available in the system (server) - these are different from your browser since it uses your local fonts.
To make this work, you’ll need to download TrueType font or something like WenQuanYi Micro Hei font and place them in the ~/.local/share/fonts or ~/.fonts folders and refresh the font cache with $ fc-cache -fv to make them available.
You can confirm if they are available by running fc-list | grep "Name of the font".
@NoobDoesMC Here’s the thing, your steps are good (you’re just missing $ mv HDZB_35.TTF .fonts) but the font is faulty, I was unable to install it in my local machine.
Try with another font from another website and try install it the same way. When you run $ fc-cache -fv it should print something similar to this:
/app/.fonts: caching, new cache contents: 1 fonts, 0 dirs
Where 1 fonts (or the amount you installed) are detected in the folder.
That makes sense, I assumed you were adding the regular HTML meta tags. I’m glad you were able to figure it out, but hey, now we know how to add custom fonts