adding font to mPDF

后端 未结 6 973
失恋的感觉
失恋的感觉 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:34

    No need to show errors on the screen. See all errors and warnings in log file like "error.log" of your php + apache(?) server. It help you to find and resolve the problem based on message in the log file.

    I any case you should use recommend fonts - see mPDF manual.

    Probably, you need to convert TrueType fonts into proper MPDF's format. (http://mpdf1.com/manual/index.php?tid=409&searchstring=fonts)

提交回复
热议问题