# HTML2PDF renders line-height incorrectly on PHP7 / Ubuntu 20.04

**URL:** <https://community.apryse.com/t/html2pdf-renders-line-height-incorrectly-on-php7-ubuntu-20-04/3767>\
**Category:** Apryse SDK\
**Created:** [March 12, 2021, 5:42pm UTC](https://community.apryse.com/t/html2pdf-renders-line-height-incorrectly-on-php7-ubuntu-20-04/3767 "2021-03-12T17:42:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan](https://community.apryse.com/user_avatar/community.apryse.com/ryan/32/314_2.png) [@Ryan](https://community.apryse.com/u/Ryan)\
**Post date:** [March 12, 2021, 5:42pm UTC](https://community.apryse.com/t/html2pdf-renders-line-height-incorrectly-on-php7-ubuntu-20-04/3767/1 "2021-03-12T17:42:15Z")

</div>

**Question:**  
On Ubuntu 16.04 / PHP 5.6 we were successfully converting an HTML snippet to PDF.

On Ubuntu 20.04 / PHP7, the html2pdf module is rendering the line-height differently than the what is expected and different than on Ubuntu 16.04.

I am using the HTML2PDF module for Ubuntu 20.04 here:  
[https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/support/html2pdf/HTML2PDF64-Ubuntu20.tar.gz](https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/support/html2pdf/HTML2PDF64-Ubuntu20.tar.gz)

**Answer:**

Apparently the fonts on Ubuntu 20.04 did not map the same as on Ubuntu 16.04.

Running `fc-match "Helvetica"` on command line yielded different results:

16.04: “Nimbus Sans L” “Regular”  
20.04: “Nimbus Sans” “Regular”

Changing the font-family from “Helvetica” to “Nimbus Sans L” corrected this issue.
