mPDF Manual – mPDF Variables

# adjustFontDescLineheight

(mPDF >= 6.0)

## Description

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.

$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 ## Usage 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;



## Changelog

Version Description
6.0 Variable was added.