mirror of https://github.com/vdm-io/tcpdf.git
5.9.187 (2012-09-14)
- Subset feature was extended to include the first 256 characters.
This commit is contained in:
parent
df7ac13a2a
commit
c50728c561
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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.",
|
||||
|
|
18
tcpdf.php
18
tcpdf.php
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
//============================================================+
|
||||
// File name : tcpdf.php
|
||||
// Version : 5.9.186
|
||||
// Version : 5.9.187
|
||||
// Begin : 2002-08-03
|
||||
// Last Update : 2012-09-13
|
||||
// Last Update : 2012-09-14
|
||||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
||||
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
||||
// -------------------------------------------------------------------
|
||||
|
@ -139,7 +139,7 @@
|
|||
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
||||
* @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.<br>
|
||||
* @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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue