mPDF Manual – mPDF Variables

adjustFontDescLineheight

(mPDF ≥ 6.0)

DescriptionPermalink

void adjustFontDescLineheight

Specify a factor by which to multiply the font metrics, when determining the text lineheight. When set to 1, the text line height will equal the values set in the font for Ascent + Descent.

For more information, see Line-height.

ValuesPermalink

$adjustFontDescLineheight

Values

  • FLOAT : use the when font metrics are being used to set the text line-height. Usual value between 1 and 1.2

Default: 1.14

UsagePermalink

Set at document initiation

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

or during the course of creating the document

<?php
$mpdf->adjustFontDescLineheight = 1.14;

ChangelogPermalink

Version Description
6.0 Variable was added.

See AlsoPermalink