Skip to content

Commit

Permalink
Tweak to tfpdf font write path
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-docnet committed Nov 8, 2016
1 parent 89646a3 commit feb2c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tFPDF/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -1010,14 +1010,14 @@ public function AddFont($str_family, $str_style = '', $str_file = '', $bol_unico
$str_ttf_filename = $this->getFontPath() . $this->str_unifont_path . $str_file;
}
$str_unicode_file = $this->str_unifont_path . strtolower(substr($str_file, 0, (strpos($str_file, '.'))));
$str_unicode_filename = $this->getFontPath() . $str_unicode_file;
$str_unicode_filename = $this->getFontWritePath() . $str_unicode_file;
$str_name = '';
$int_original_size = 0;
$arr_ttf_stat = stat($str_ttf_filename);
if (file_exists($str_unicode_filename . '.mtx.php')) {
include($str_unicode_filename . '.mtx.php');
} else {
$str_unicode_filename = $this->getFontWritePath() . $str_unicode_file;
//$str_unicode_filename = $this->getFontWritePath() . $str_unicode_file;
}

$arr_descriptors = [];
Expand Down

0 comments on commit feb2c18

Please sign in to comment.