Jump to content

How to change font to bold in prestashop invoice


Recommended Posts

  • 4 months later...

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

  • 3 weeks later...

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

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...