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