mPDF Manual – mPDF Variables

percentSubset

mPDF ≥ 5.0

Control fonts/subsetting

If not -s (i.e. forced subset) this value determines whether to subset or not

0 - 100 = percent characters

i.e. if 40, mPDF will embed whole font if > 40% characters in that font or embed subset if > 40% characters.

  • 0 will force whole file to be embedded
  • 100 will force always to subset

Default set as a configuration variable

Default value: 30

Fork me on GitHub