6.0.004 (2013-03-21)

- Return value of addTTFfont() method was fixed.
This commit is contained in:
nicolaasuni 2013-03-21 17:10:14 +00:00
parent 3fa01d8e99
commit 3e1f83ee55
4 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,6 @@
6.0.004 (2013-03-21)
- Return value of addTTFfont() method was fixed.
6.0.003 (2013-03-20)
- A bug related to non-unicode mode was fixed.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 6.0.003
Release date: 2013-03-20
Version: 6.0.004
Release date: 2013-03-21
Author: Nicola Asuni
Copyright (c) 2002-2013:

View File

@ -1,9 +1,9 @@
<?php
//============================================================+
// File name : tcpdf_fonts.php
// Version : 1.0.001
// Version : 1.0.002
// Begin : 2008-01-01
// Last Update : 2013-03-20
// Last Update : 2013-03-21
// 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)
// -------------------------------------------------------------------
@ -42,7 +42,7 @@
* @class TCPDF_FONTS
* Font methods for TCPDF library.
* @package com.tecnick.tcpdf
* @version 1.0.001
* @version 1.0.002
* @author Nicola Asuni - info@tecnick.com
*/
class TCPDF_FONTS {
@ -355,7 +355,7 @@ class TCPDF_FONTS {
$offset = 0; // offset position of the font data
if (TCPDF_STATIC::_getULONG($font, $offset) != 0x10000) {
// sfnt version must be 0x00010000 for TrueType version 1.0.
return $font;
return false;
}
$offset += 4;
// get number of tables
@ -382,7 +382,7 @@ class TCPDF_FONTS {
$offset = $table['head']['offset'] + 12;
if (TCPDF_STATIC::_getULONG($font, $offset) != 0x5F0F3CF5) {
// magicNumber must be 0x5F0F3CF5
return $font;
return false;
}
$offset += 4;
$offset += 2; // skip flags

View File

@ -1,7 +1,7 @@
<?php
//============================================================+
// File name : tcpdf.php
// Version : 6.0.003
// Version : 6.0.004
// Begin : 2002-08-03
// Last Update : 2013-03-20
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
@ -139,7 +139,7 @@
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 6.0.003
* @version 6.0.004
*/
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.<br>
* @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions.
* @version 6.0.003
* @version 6.0.004
* @author Nicola Asuni - info@tecnick.com
*/
class TCPDF {