autoScriptToLang
(mPDF ≥ 6.0)
Description
boolean autoScriptToLang
When true
, marks up HTML text using the lang attribute, based on the Unicode script
block in question, and values in \Mpdf\Language\ScriptToLanguageIntergface
interface implementation set for mPDF.
Note: Prior to mPDF 7.0 this behaviour is being set-up by altering config_script2lang.php
file in mPDF path root.
Values
$autoScriptToLang = true
|false
Values
true
: Mark up HTML text using the lang attribute, based on the Unicode script block in question, and values in\Mpdf\ScriptToLang
class.false
: No markup applied.
Default: false
See Also
- Fonts in mPDF 7.x
- autoLangToFont - selects the font to use, based on the HTML lang attribute
- Automatic Font selection