diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 76febd2..b35a577 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.187 (2012-09-14) + - Subset feature was extended to include the first 256 characters. + 5.9.186 (2012-09-13) - barcodes.php file was resynced. - Methods SetAbsX, SetAbsY, SetAbsXY where added to set the absolute pointer coordinates. diff --git a/README.TXT b/README.TXT index 3ada350..d7655a0 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.186 -Release date: 2012-09-13 +Version: 5.9.187 +Release date: 2012-09-14 Author: Nicola Asuni Copyright (c) 2002-2012: diff --git a/composer.json b/composer.json index 4339708..65276fa 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tcpdf/tcpdf", - "version": "5.9.186", + "version": "5.9.187", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions.", diff --git a/tcpdf.php b/tcpdf.php index b4e634f..e7ecfbe 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.186 + * @version 5.9.187 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -151,7 +151,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.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 5.9.186 + * @version 5.9.187 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -162,7 +162,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.186'; + private $tcpdf_version = '5.9.187'; // Protected properties @@ -5300,8 +5300,8 @@ class TCPDF { if (!isset($cbbox)) { $cbbox = array(); } - // initialize subsetchars to contain default ASCII values (0-255) - $subsetchars = array_fill(0, 256, true); + // initialize subsetchars + $subsetchars = array(); $this->setFontBuffer($fontkey, array('fontkey' => $fontkey, 'i' => $this->numfonts, 'type' => $type, 'name' => $name, 'desc' => $desc, 'up' => $up, 'ut' => $ut, 'cw' => $cw, 'cbbox' => $cbbox, 'dw' => $dw, 'enc' => $enc, 'cidinfo' => $cidinfo, 'file' => $file, 'ctg' => $ctg, 'subset' => $subset, 'subsetchars' => $subsetchars)); if ($this->inxobj) { // we are inside an XObject template @@ -8894,7 +8894,7 @@ class TCPDF { $this->SetAbsX($x); $this->SetAbsY($y); } - + /** * Ouput input data and compress it if possible. * @param $data (string) Data to output. @@ -11618,7 +11618,7 @@ class TCPDF { // for each character foreach ($font['cw'] as $cid => $width) { $cid -= $cidoffset; - if ($font['subset'] AND ($cid > 255) AND (!isset($font['subsetchars'][$cid]))) { + if ($font['subset'] AND (!isset($font['subsetchars'][$cid]))) { // ignore the unused characters (font subsetting) continue; }