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 - 18:02

Hello,

Embedded fonts are fonts included in the DOCX file, not the default font: https://www.howtogeek.com/106681/how-to-embed-fonts-in-a-microsoft-word-document/ . LibreOffice works with embedded fonts too.

replaceVariableByText keeps the font-family used by the placehoder in the template unless the whole paragraph is replaced (type option of the method). replaceVariableByHTML doesn't keep the font-family of the placeholder, it adds a default font-family, so you need to set font-family to use a custom one.

phpdocx 10 added the stylesReplacementType option to keep existing placeholder pPr and rPr styles such as font sizes, font families and others when transforming HTML.

Regards.