Skip to content

Commit

Permalink
Merge pull request #335 from djfm/pdf
Browse files Browse the repository at this point in the history
// fixed PDF invoice for ar, az, bg, ca, hr, cs, gl, ka, he, ko, lo, lv,...
  • Loading branch information
rGaillard committed Mar 20, 2013
2 parents 04c3b54 + adf6786 commit 3b97989
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 1 deletion.
31 changes: 30 additions & 1 deletion classes/pdf/PDFGenerator.php
Expand Up @@ -39,7 +39,36 @@ class PDFGeneratorCore extends TCPDF
public $content;
public $font;

public $font_by_lang = array('ja' => 'cid0jp', 'bg' => 'freeserif', 'ru' => 'freeserif', 'el' => 'freeserif', 'vn' => 'dejavusans', 'pl' => 'dejavusans');
public $font_by_lang = array(
'ja' => 'cid0jp',
'bg' => 'freeserif',
'ru' => 'freeserif',
'uk' => 'freeserif',
'mk' => 'freeserif',
'el' => 'freeserif',
'vn' => 'dejavusans',
'pl' => 'dejavusans',
'ar' => 'dejavusans',
'fa' => 'dejavusans',
'ur' => 'dejavusans',
'az' => 'dejavusans',
'ca' => 'dejavusans',
'gl' => 'dejavusans',
'hr' => 'dejavusans',
'sr' => 'dejavusans',
'si' => 'dejavusans',
'cs' => 'dejavusans',
'sk' => 'dejavusans',
'ka' => 'dejavusans',
'he' => 'dejavusans',
'lo' => 'dejavusans',
'lv' => 'dejavusans',
'tr' => 'dejavusans',
'ko' => 'cid0kr',
'zh' => 'cid0cs',
'tw' => 'cid0cs',
'th' => 'freeserif'
);


public function __construct($use_cache = false)
Expand Down
16 changes: 16 additions & 0 deletions tools/tcpdf/fonts/cid0cs.php

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions tools/tcpdf/fonts/cid0kr.php

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions tools/tcpdf/fonts/uni2cid_ag15.php

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions tools/tcpdf/fonts/uni2cid_ak12.php

Large diffs are not rendered by default.

0 comments on commit 3b97989

Please sign in to comment.