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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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