neetupahwa Posted January 28, 2014 Share Posted January 28, 2014 I am using Prestashop 1.5.4.1, trying to change font to century gothic, I generated font from this url by uploaded century gothic ttf file: http://www.fpdf.org/makefont/ - cp1252 and uploded both the php and .z file to /tools/tcpdf/fonts and changed the font in PDFGenerator.php. When I tried to generate the invoice in backend. The font does not seems to be working properly, it is not readable. Invoice screenshot is attached. Am I missing any step or is there any other way to add new font in prestashop 1.5.4.1 .. gothic_0.php Thanks... Link to comment Share on other sites More sharing options...
tuk66 Posted January 28, 2014 Share Posted January 28, 2014 See TCPDF documentation. Link to comment Share on other sites More sharing options...
neetupahwa Posted January 29, 2014 Author Share Posted January 29, 2014 See TCPDF documentation. I referred to the documentation again, where can I find addTTFfont() method.. $fontname = $pdf->addTTFfont('/path-to-font/DejaVuSans.ttf', 'TrueTypeUnicode', '', 32); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now