tijojoel Posted January 18, 2018 Share Posted January 18, 2018 Hi, I want to know how to change font type to bold in prestashop invoice. I had done many things to make the texts bold but no change is affecting. Anyone please help? Link to comment Share on other sites More sharing options...
NemoPS Posted January 21, 2018 Share Posted January 21, 2018 See if this helps http://nemops.com/customize-prestashop-pdf/#.WmQimz4jHIU Link to comment Share on other sites More sharing options...
tijojoel Posted January 22, 2018 Author Share Posted January 22, 2018 @NemoPS Thank you for the tutorial but in my case I had tried many things but that font is not supporting bold property. I am attaching the PDF file generated. IN000037.pdf Link to comment Share on other sites More sharing options...
tuk66 Posted January 23, 2018 Share Posted January 23, 2018 What is wrong? This example contains both DejaVuSans as well as DejaVuSans Bold fonts. Link to comment Share on other sites More sharing options...
NemoPS Posted January 23, 2018 Share Posted January 23, 2018 That's very strange, it should really work, is that the actual font being used? Link to comment Share on other sites More sharing options...
tijojoel Posted January 29, 2018 Author Share Posted January 29, 2018 @NemoPS Whenever I am adding bold property it is not affecting. Link to comment Share on other sites More sharing options...
typoman Posted June 13, 2018 Share Posted June 13, 2018 Has anyone solved this? I have the same issue. After an upgrade from PS 1.6.0.9 to 1.6.1.18 it lost all the bold styles. They are present in the template and worked before. Ater inspecting the pdf I see that the template uses DejaVu as Font instead of Helvetica like before. In PDFGenerator.php I found out that there is a constant set to 'helvetica'. Which should force Helvetica as a base font. Further there are some settings for other countries that should not affect me (German -> de). Any ideas what could have caused this issue? best regards, Roland Link to comment Share on other sites More sharing options...
Ayardp Posted June 28, 2018 Share Posted June 28, 2018 Buenos días tipoman, En el fichero, classes/pdf/PDFGenerator.php en la linea: 146, (public function setFontForLang($iso_lang)) hay que cambiar: $this->font = 'dejavusans'; por $this->font = self::DEFAULT_FONT; De forma que si tu idioma no tiene una fuente seleccionada coge la que sea por defecto, en este caso helvetica que si funciona con bold. Saludos 1 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