PhpSigep\Pdf\ImprovedFPDF::getLineHeigth PHP Method

getLineHeigth() public method

public getLineHeigth ( integer $padding = null ) : integer
$padding integer Deve ser informado usando a unidade de medida passada no construtor.
return integer
    public function getLineHeigth($padding = null)
    {
        if ($padding === null) {
            $padding = $this->lineHeightPadding;
        }
        $lineHeigth = $this->FontSizePt + $this->FontSizePt * ($padding * $this->k) / 100;
        return $lineHeigth / $this->k;
    }

Usage Example

 private function t($w, $txt, $ln, $align, $h = null, $multiLines = false, $utf8 = true)
 {
     if ($utf8) {
         $txt = $this->_($txt);
     }
     //		$border = 1;
     //		$fill   = true;
     $border = 0;
     $fill = false;
     if ($h === null) {
         $h = $this->pdf->getLineHeigth();
     }
     if ($multiLines) {
         $this->pdf->MultiCell($w, $h, $txt, $border, $align, $fill);
     } else {
         $this->pdf->Cell($w, $h, $txt, $border, $ln, $align, $fill);
     }
 }