Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you’ll find that some of asian (ie.: Japanese) characters are not rendered correctly in PDF output (ie,: appear as squares), this is likely caused by using font that does not support those characters. To fix this, install additional fonts to your HostBill PDF render engine.

To do so:

View file
name

...

fonts.zip

  1. Download zip file above

  2. Unzip its contents in hbf/libs/mpdf/ttfonts directory of your HostBill install

  3. In your Document templates set new font to be used in document body, replace font-family at top of document (invoice) template html code from Arial to Garuda "Arial","sun-exta"


So from:

  1. Code Block
    <style type="text/css">
        body {
            font-family: Arial;
        }
    </style>

...

Code Block
<style type="text/css">
    body {
        font-family: Garuda"Arial","sun-exta";
    }
</style>