VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Kuubs on April 29, 2020, 22:03:57 PM

Title: Add custom font for invoice
Post by: Kuubs on April 29, 2020, 22:03:57 PM
Hello,

How can I add a custom font for the invoice of Virtuemart. It uses TCPDF which can import custom fonts, but how can I achieve this?
Title: Re: Add custom font for invoice
Post by: pinochico on April 29, 2020, 23:05:39 PM
I try to search on google:

https://stackoverflow.com/questions/29896102/how-do-you-add-custom-fonts-in-tcpdf
http://queirozf.com/entries/adding-a-custom-font-to-tcpdf
https://ourcodeworld.com/articles/read/601/how-to-implement-custom-fonts-in-tcpdf
Title: Re: Add custom font for invoice
Post by: Kuubs on April 30, 2020, 09:20:24 AM
Quote from: pinochico on April 29, 2020, 23:05:39 PM
I try to search on google:

https://stackoverflow.com/questions/29896102/how-do-you-add-custom-fonts-in-tcpdf
http://queirozf.com/entries/adding-a-custom-font-to-tcpdf
https://ourcodeworld.com/articles/read/601/how-to-implement-custom-fonts-in-tcpdf

YEah I tried that, but that is not working for the TCPDF that Virtuemart has for some strange reason. I cannot seem to get it to work. Is there a way to just use the latest version of TCPDF instead of this weird version VM uses?
Title: Re: Add custom font for invoice
Post by: jenkinhill on April 30, 2020, 11:18:50 AM
I seem to remember that there are licence issues with the current TCPDF which prevents it from being included with VirtueMart. I think someone on this forum did report on how to install & use a later TCPDF version.