Setting NotoSans Font family for TCPDF Module

Hi all,

I’ve added the optional parameter MAIN_PDF_FORCE_FONT in my Dolibarr Setup to be able to set a different font for pdf creation due to turkish, chinese, japanese translations of quotations, etc.

I’ve decided to use the NotoSans TTF fonts.
I downloaded the ZIP file containing all the needed NotoSans-*.ttf files

then I downloaded the in dolibarr missing tcpdf_addfont.php file from the github repository and put it into the /usr/share/dolibarr/htdocs/includes/tecnickcom/tcpdf/tools folder

from there I’ve imported all the ttf files for tcpdf using the command:

./tcpdf_addfont.php -i import/NotoSans-Regular.ttf

>>> Converting fonts for TCPDF:
*** Output dir set to /usr/share/dolibarr/htdocs/includes/tecnickcom/tcpdf/fonts/
+++ OK   : /root/import/NotoSans-Regular.ttf added as notosans
>>> Process successfully completed!

I’ve repeated the steps for all ttf files and have all fonts converted successfully for tcpdf

I have now all NotoSans fonts inside the fonts subfolder and can set the value for MAIN_PDF_FORCE_FONT to NotoSans

The value change is ok and a quotation can be generated without an error. But when I open the preview of the quotation all text is gone. When I select the text, I see that the text should be there, but its not visible.

Has anyone managed to add the notosans fonts for PDF generation?
Setting the font to DeJaVuSans works - but I don’t like the look of that font.
Any help is greatly appreciated!

Best regards
Bastian