説明なし

TableDirectoryEntry.php 782B

12345678910111213141516171819202122232425262728293031323334
  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. namespace FontLib\WOFF;
  9. use FontLib\Table\DirectoryEntry;
  10. /**
  11. * WOFF font file table directory entry.
  12. *
  13. * @package php-font-lib
  14. */
  15. class TableDirectoryEntry extends DirectoryEntry {
  16. public $origLength;
  17. function __construct(File $font) {
  18. parent::__construct($font);
  19. }
  20. function parse() {
  21. parent::parse();
  22. $font = $this->font;
  23. $this->offset = $font->readUInt32();
  24. $this->length = $font->readUInt32();
  25. $this->origLength = $font->readUInt32();
  26. $this->checksum = $font->readUInt32();
  27. }
  28. }