Jump to content
tripwater

PHP - TCPDF pdf style bold with Arial font

Recommended Posts

Hello, for the longest time we were using FPDF to generate our pdf invoices. We recently upgraded to TCPDF and noticed we lost the bold font style. Our system admin says the font files are where they should be, in fact we can call $pdf->SetFont( 'Arial', 'BI', 10 ); and it is bold italic. Pass in 'I' and it is Italic but if we only pass in 'B' for bold, it display as normal font, no style. In the older FPDF, bold worked fine.

 

Is there something we might be missing? We really need headers, certain labels and info to stand out in bold. Thank you for any help with this.

 

Running the latest version of TCPDF on a Linux server.

 

Thank you for any help with this.

Edited by tripwater

Share this post


Link to post
Share on other sites

I don't know if this is related to the same problem, but after a Microsoft/IE update the Arial font and other fonts were screwed up ( good old MS) and they did not show as expected. To fix you have to find a previous version font and reinstalled overwriting the update , after I did this the Arial font styles was back to normal.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...