| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package php-font-lib |
| 4 |
* @link https://github.com/dompdf/php-font-lib |
| 5 |
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace FontLib\WOFF; |
| 9 |
|
| 10 |
use FontLib\Table\DirectoryEntry; |
| 11 |
|
| 12 |
/** |
| 13 |
* WOFF font file table directory entry. |
| 14 |
* |
| 15 |
* @package php-font-lib |
| 16 |
*/ |
| 17 |
class TableDirectoryEntry extends DirectoryEntry { |
| 18 |
public $origLength; |
| 19 |
|
| 20 |
function __construct(File $font) { |
| 21 |
parent::__construct($font); |
| 22 |
} |
| 23 |
|
| 24 |
function parse() { |
| 25 |
parent::parse(); |
| 26 |
|
| 27 |
$font = $this->font; |
| 28 |
$this->offset = $font->readUInt32(); |
| 29 |
$this->length = $font->readUInt32(); |
| 30 |
$this->origLength = $font->readUInt32(); |
| 31 |
$this->checksum = $font->readUInt32(); |
| 32 |
} |
| 33 |
} |
| 34 |
|