From 050de12ab5359ce475dab49bae5cedbcf455f708 Mon Sep 17 00:00:00 2001 From: Jan Slabon Date: Tue, 20 Dec 2022 11:26:07 +0100 Subject: [PATCH] Update to tFPDF 1.33 --- font/unifont/ttfonts.php | 81 +++++++++---------- info.htm | 2 +- tfpdf.php | 163 +++++++++++++++++++-------------------- 3 files changed, 120 insertions(+), 126 deletions(-) diff --git a/font/unifont/ttfonts.php b/font/unifont/ttfonts.php index 94ac477..9ccb8fb 100644 --- a/font/unifont/ttfonts.php +++ b/font/unifont/ttfonts.php @@ -1,6 +1,4 @@ * * License: LGPL * * Copyright (c) Ian Back, 2010 * @@ -37,37 +35,44 @@ class TTFontFile { -var $maxUni; -var $_pos; -var $numTables; -var $searchRange; -var $entrySelector; -var $rangeShift; -var $tables; -var $otables; -var $filename; -var $fh; -var $hmetrics; -var $glyphPos; -var $charToGlyph; -var $ascent; -var $descent; -var $name; -var $familyName; -var $styleName; -var $fullName; -var $uniqueFontID; -var $unitsPerEm; -var $bbox; -var $capHeight; -var $stemV; -var $italicAngle; -var $flags; -var $underlinePosition; -var $underlineThickness; -var $charWidths; -var $defaultWidth; -var $maxStrLenRead; +public $maxUni; +public $maxUniChar; +public $sFamilyClass; +public $sFamilySubClass; +public $_pos; +public $numTables; +public $searchRange; +public $entrySelector; +public $rangeShift; +public $tables; +public $otables; +public $filename; +public $fh; +public $hmetrics; +public $glyphPos; +public $charToGlyph; +public $codeToGlyph; +public $glyphdata; +public $ascent; +public $descent; +public $TTCFonts; +public $version; +public $name; +public $familyName; +public $styleName; +public $fullName; +public $uniqueFontID; +public $unitsPerEm; +public $bbox; +public $capHeight; +public $stemV; +public $italicAngle; +public $flags; +public $underlinePosition; +public $underlineThickness; +public $charWidths; +public $defaultWidth; +public $maxStrLenRead; function __construct() { $this->maxStrLenRead = 200000; // Maximum size of glyf table to read in as string (otherwise reads each glyph from file) @@ -1080,10 +1085,6 @@ function endTTFile(&$stm) { return $stm ; } - - - } - -?> \ No newline at end of file +?> diff --git a/info.htm b/info.htm index e1ec1e1..dece254 100644 --- a/info.htm +++ b/info.htm @@ -1,7 +1,7 @@ - + tFPDF