Forum


Replies: 4   Views: 2007
Thai and japanese fonts
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 01-04-2020 - 07:49

Hello,

LibreOffice, OpenOffice and MS Word uses the fonts available in the OS. If some font is not available, they try to use the most similar one (if any available).

There're many free fonts available to be installed and used, and also many closed fonts that require purchasing them. We recommend installing as many of them as needed (even all available fonts in the Linux distribution you are using), for example, Debian includes fonts-thai-tlwg (https://packages.debian.org/sid/fonts-thai-tlwg) and many other fonts. On https://wiki.archlinux.org/index.php/Fonts#Tai%E2%80%93Kadai you can find a very good description of many available fonts in Linux.

Using Indexer you can get the font name used in a DOCX. And you can also embed fonts in a DOCX if any is not available in the OS, the embedded fonts are used by LibreOffice, OpenOffice and MS Word as well: https://www.phpdocx.com/documentation/cookbook/good-practices-with-fonts (Adding new fonts to a DOCX section).

Regards.