adding font to mPDF

后端 未结 6 1082
失恋的感觉
失恋的感觉 2020-12-14 02:32

I\'m getting the following error when I try and generate a PDF using the mPDF class:

TTF file \"C:/wamp/www/inc/mpdf/ttfonts/verdana.ttf\": invalid checksum          


        
6条回答
  •  悲哀的现实
    2020-12-14 03:26

    Mpdf add Arial font

    1. Download font file : https://github.com/JotJunior/PHP-Boleto-ZF2/blob/master/public/assets/fonts/arial.ttf

    2. Paste the arial.ttf to mpdf/ttfonts

    3. Open config_fonts.php and the below code with fontdata array

      "arial" => array( 'R' => "arial.ttf", ),

提交回复
热议问题