From 57fd821ca9d21421216c09aef45c20a58bdd1e83 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Tue, 26 Mar 2013 13:49:17 +0000 Subject: [PATCH] 6.0.005 (2013-03-26) - Default font path was fixed. --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- include/tcpdf_colors.php | 4 ++-- include/tcpdf_fonts.php | 11 +++++++---- include/tcpdf_static.php | 4 ++-- tcpdf.php | 16 ++++++++-------- 6 files changed, 24 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 2af8e1e..3954260 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.0.005 (2013-03-26) + - Default font path was fixed. + 6.0.004 (2013-03-21) - Return value of addTTFfont() method was fixed. diff --git a/README.TXT b/README.TXT index 53fe304..ebdff42 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.004 -Release date: 2013-03-21 +Version: 6.0.005 +Release date: 2013-03-26 Author: Nicola Asuni Copyright (c) 2002-2013: diff --git a/include/tcpdf_colors.php b/include/tcpdf_colors.php index a91f698..7942219 100644 --- a/include/tcpdf_colors.php +++ b/include/tcpdf_colors.php @@ -3,7 +3,7 @@ // File name : tcpdf_colors.php // Version : 1.0.000 // Begin : 2002-04-09 -// Last Update : 2013-03-16 +// Last Update : 2013-03-25 // Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // ------------------------------------------------------------------- @@ -260,7 +260,7 @@ class TCPDF_COLORS { * @return array RGB or CMYK color, or false in case of error. * @public static */ - public static function convertHTMLColorToDec($hcolor='#FFFFFF', &$spotc, $defcol=array('R'=>128,'G'=>128,'B'=>128)) { + public static function convertHTMLColorToDec($hcolor, &$spotc, $defcol=array('R'=>128,'G'=>128,'B'=>128)) { $color = preg_replace('/[\s]*/', '', $hcolor); // remove extra spaces $color = strtolower($color); // check for javascript color array syntax diff --git a/include/tcpdf_fonts.php b/include/tcpdf_fonts.php index 1933437..b66965c 100644 --- a/include/tcpdf_fonts.php +++ b/include/tcpdf_fonts.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.0.004 + * @version 6.0.005 */ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { @@ -168,7 +168,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 6.0.004 + * @version 6.0.005 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -11436,7 +11436,7 @@ class TCPDF { */ protected function _outRect($x, $y, $w, $h, $op) { if ($this->state == 2) { - $this->_out(sprintf('%F %F %F %F re %s', $x * $this->k, ($this->h - $y) * $this->k, $w * $this->k, -$h * $this->k, $op)); + $this->_out(sprintf('%F %F %F %F re %s', ($x * $this->k), (($this->h - $y) * $this->k), ($w * $this->k), (-$h * $this->k), $op)); } } @@ -11454,7 +11454,7 @@ class TCPDF { */ protected function _outCurve($x1, $y1, $x2, $y2, $x3, $y3) { if ($this->state == 2) { - $this->_out(sprintf('%F %F %F %F %F %F c', $x1 * $this->k, ($this->h - $y1) * $this->k, $x2 * $this->k, ($this->h - $y2) * $this->k, $x3 * $this->k, ($this->h - $y3) * $this->k)); + $this->_out(sprintf('%F %F %F %F %F %F c', ($x1 * $this->k), (($this->h - $y1) * $this->k), ($x2 * $this->k), (($this->h - $y2) * $this->k), ($x3 * $this->k), (($this->h - $y3) * $this->k))); } } @@ -11470,7 +11470,7 @@ class TCPDF { */ protected function _outCurveV($x2, $y2, $x3, $y3) { if ($this->state == 2) { - $this->_out(sprintf('%F %F %F %F v', $x2 * $this->k, ($this->h - $y2) * $this->k, $x3 * $this->k, ($this->h - $y3) * $this->k)); + $this->_out(sprintf('%F %F %F %F v', ($x2 * $this->k), (($this->h - $y2) * $this->k), ($x3 * $this->k), (($this->h - $y3) * $this->k))); } } @@ -11486,7 +11486,7 @@ class TCPDF { */ protected function _outCurveY($x1, $y1, $x3, $y3) { if ($this->state == 2) { - $this->_out(sprintf('%F %F %F %F y', $x1 * $this->k, ($this->h - $y1) * $this->k, $x3 * $this->k, ($this->h - $y3) * $this->k)); + $this->_out(sprintf('%F %F %F %F y', ($x1 * $this->k), (($this->h - $y1) * $this->k), ($x3 * $this->k), (($this->h - $y3) * $this->k))); } }