autoLangToFont
(mPDF ≥ 6.0)
Description
boolean autoLangToFont
When true, selects the font to use, based on the HTML lang attribute,
using values in \Mpdf\Language\LanguageToFontInterface interface implementation set for mPDF.
Note: Prior to mPDF 7.0 this behaviour is being set-up by altering config_lang2font.php file in mPDF path root.
Values
$autoLangToFont = true|false
Values
true: Selects the font to use, based on the HTML lang attribute, using values in\Mpdf\LangToFontclass.false: Font selection unaffected.
Default: false
Usage
Set at document initiation
<?php
$mpdf = new \Mpdf\Mpdf(['autoLangToFont' => false]);
See Also
- Fonts in mPDF 7.x
- autoScriptToLang - marks up HTML text using the lang attribute, based on the Unicode script block
- Automatic Font selection