independent-analytics
/
vendor
/
phenx
/
php-font-lib
/
src
/
FontLib
/
WOFF
/
TableDirectoryEntry.php
TableDirectoryEntry.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @package php-font-lib |
| 5 | * @link https://github.com/PhenX/php-font-lib |
| 6 | * @author Fabien Ménager <fabien.menager@gmail.com> |
| 7 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License |
| 8 | */ |
| 9 | namespace IAWP\FontLib\WOFF; |
| 10 | |
| 11 | use IAWP\FontLib\Table\DirectoryEntry; |
| 12 | /** |
| 13 | * WOFF font file table directory entry. |
| 14 | * |
| 15 | * @package php-font-lib |
| 16 | */ |
| 17 | class TableDirectoryEntry extends DirectoryEntry |
| 18 | { |
| 19 | public $origLength; |
| 20 | function __construct(File $font) |
| 21 | { |
| 22 | parent::__construct($font); |
| 23 | } |
| 24 | function parse() |
| 25 | { |
| 26 | parent::parse(); |
| 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 |