• Resolved lehnihon

    (@lehnihon)


    Hi, I’m trying to install a new font Lato in mpdf without success.
    I put the font in wp-content\plugins\send-pdf-for-contact-form-7\mpdf\ttfonts\
    and set up the file config_fonts.php:

    “Lato” => array(
    ‘R’ => “Lato-Regular.ttf”,
    ‘B’ => “Lato-Bold.ttf”,
    ‘I’ => “Lato-Italic.ttf”,
    ‘BI’ => “Lato-BoldItalic.ttf”,
    )

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try import fonts directly in PDF HTML template

    I solved this by wrapping the PDF body into a <body> tag which included an inline css style for an alternate font:

    <body style="font-style:normal;font-variant:normal;font-weight:normal;font-size:80%;font-family:'Open Sans', Verdana, Arial, Helvetica, sans-serif;font-style: normal;line-height:1.4;">

    However, this only works when the server running your site has access to those fonts.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘New Font Style’ is closed to new replies.