Changes the font used to generate sales PDFs to a font which supports more writing systems.
In Magento versions 2.2.2 & 2.1.10 the Libertine Font which is used to generate Sales PDFs does not support the Thai, Hindi and many other writing systems. This module changes the font used to the GNU Free Font which has much wider support of different writing systems. See the GNU Free Font web page for a full list of writing systems supported.
There are two open tickets for this on GitHub so this will hopefully be fixed in a later Magento releases. In which case it may be better to upgrade your magento version than installing this module.
Nevertheless this module can be used as an example of how to change the font used by Magento to genreate sales PDFs. Googles Noto Fonts are good source of font famillies which support different writing systems.
- Download this repository into your magento instance, in an app/code/Rossmc/SalesPdfFonts directory.
- Run
php bin/magento module:enable Rossmc/SalesPdfFonts
- Run
php bin/magento cache:flush
- Run
php bin/magento setup:upgrade