-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
120 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<?php | ||
|
||
|
||
/******************************************************************************* | ||
* TTFontFile class * | ||
* * | ||
* This class is based on The ReportLab Open Source PDF library * | ||
* written in Python - http://www.reportlab.com/software/opensource/ * | ||
* together with ideas from the OpenOffice source code and others. * | ||
* * | ||
* Version: 1.05 * | ||
* Date: 2018-03-19 * | ||
* Version: 1.06 * | ||
* Date: 2022-12-20 * | ||
* Author: Ian Back <[email protected]> * | ||
* 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 ; | ||
} | ||
|
||
|
||
|
||
|
||
} | ||
|
||
|
||
?> | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.