diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 7234f56..bbfd53c 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.0.051 (2013-12-02) + - cbbox array values in addTTFfont() were converted to integers. + 6.0.050 (2013-12-01) - The method getNumLines() was extended to support hyphenation. - The CSS property line-height now supports non percentage values. diff --git a/README.TXT b/README.TXT index 92ba476..ac9f934 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.050 -Release date: 2013-12-01 +Version: 6.0.051 +Release date: 2013-12-02 Author: Nicola Asuni Copyright (c) 2002-2013: diff --git a/composer.json b/composer.json index 5b3a3ba..c73d375 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.0.050", + "version": "6.0.051", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/include/tcpdf_fonts.php b/include/tcpdf_fonts.php index 72b0a92..c282dc8 100644 --- a/include/tcpdf_fonts.php +++ b/include/tcpdf_fonts.php @@ -799,10 +799,10 @@ class TCPDF_FONTS { } if ($addcbbox AND isset($indexToLoc[$ctg[$cid]])) { $offset = ($table['glyf']['offset'] + $indexToLoc[$ctg[$cid]]); - $xMin = round(TCPDF_STATIC::_getFWORD($font, $offset + 2)) * $urk; - $yMin = round(TCPDF_STATIC::_getFWORD($font, $offset + 4)) * $urk; - $xMax = round(TCPDF_STATIC::_getFWORD($font, $offset + 6)) * $urk; - $yMax = round(TCPDF_STATIC::_getFWORD($font, $offset + 8)) * $urk; + $xMin = round(TCPDF_STATIC::_getFWORD($font, $offset + 2) * $urk); + $yMin = round(TCPDF_STATIC::_getFWORD($font, $offset + 4) * $urk); + $xMax = round(TCPDF_STATIC::_getFWORD($font, $offset + 6) * $urk); + $yMax = round(TCPDF_STATIC::_getFWORD($font, $offset + 8) * $urk); $fmetric['cbbox'] .= ','.$cid.'=>array('.$xMin.','.$yMin.','.$xMax.','.$yMax.')'; } } diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index 415f6ad..3abe92d 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.0.050'; + private static $tcpdf_version = '6.0.051'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index 906472e..8908bd9 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.0.050 + * @version 6.0.051 */ // TCPDF configuration @@ -128,7 +128,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.050 + * @version 6.0.051 * @author Nicola Asuni - info@tecnick.com */ class TCPDF {