Question: mpdf how to use fonts?
Answer: Add your font directory to fontDir configuration parameter or by calling $mpdf-> AddFontDirectory() method. Define the font file details in the fontData parameter array. Access the font by specifying it in your HTML code as the CSS font-family.