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