Jump to content

Recommended Posts



I want to know how to change font style in PDF document. Currect font does not fit because it shows question marks in letters which are not defined.

Share this post

Link to post
Share on other sites

Never played with it, but can't you add a font-family to the tpl files in /PDF ??


add (or better, modify an existing one if possible) around the text a <span> or <div> with:

style="font-family: 'Comic Sans MS', Times, serif;"


Fonts needed you can choose yourself, of course. be careful what you choose here:



(don't forget to override the files, not change the basic ones. Moe them to your /themes/<current theme folder>/PDF folder first...)


Not sure if I'm just saying nonsense here for your PDF problem. As said never played with the PDF's...

Maybe have a quick look.


My 2 cents,


Share this post

Link to post
Share on other sites

I found a file /pdf/invoice.tpl


there is a line:


<div style="font-size: 8pt; color: #444">


I changed to:


<div style="font-size: 8pt; font-family: Arial, Helvetica, sans-serif; color: #444">


but nothing happens. what I am doing wrong?

Edited by maarc93 (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More