DOMPDF not rendering text underline correctly FIX solution

I had encountered a bug in DOMPDF with the underline overlapping the text when I am using a custom font.

The fix is quite simple, open the src/Renderer/Text.php file of your dompdf installation and adjust (increase) the value of UNDERLINE_OFFSET constant until the underline position the text has correctly placed underneath the text.

const UNDERLINE_OFFSET = 0.5;