mPDF Manual – mPDF Variables


mPDF ≥ 5.0

Control fonts/subsetting

Set maximum size of TTF font file to allow non-subsets - in kB

Used to avoid e.g. Arial Unicode MS (perhaps used for $mpdf->substituteCharsMB()) to ever be fully embedded

NB: Free serif is 1.5 MB, most files are ≤ 600 kB (most 200-400 KB)

Default set as a configuration variable

Default value: 2000

Fork me on GitHub