mPDF Manual – mPDF Variables

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.

Values

$autoLangToFont = true|false

Values

  • true: Selects the font to use, based on the HTML lang attribute, using values in \Mpdf\LangToFont class.
  • false: Font selection unaffected.

Default: false

Usage

Set at document initiation

<?php
$mpdf = new \Mpdf\Mpdf(['autoLangToFont' => false]);

See Also

Fork me on GitHub