PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
$#$#$#

Dir : /home/telusvwg/alwatnitraders.com/wp-content/plugins/ideapark-fonts/lib/FontLib/WOFF/
Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
IP: 66.29.132.192
Choose File :

Url:
Dir : //home/telusvwg/alwatnitraders.com/wp-content/plugins/ideapark-fonts/lib/FontLib/WOFF/File.php

<?php
/**
 * @package php-font-lib
 * @link    https://github.com/PhenX/php-font-lib
 * @author  Fabien Ménager <fabien.menager@gmail.com>
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */

namespace FontLib\WOFF;

use FontLib\Table\DirectoryEntry;

/**
 * WOFF font file.
 *
 * @package php-font-lib
 *
 * @property TableDirectoryEntry[] $directory
 */
class File extends \FontLib\TrueType\File {
	function parseHeader() {
		if ( ! empty( $this->header ) ) {
			return;
		}

		$this->header = new Header( $this );
		$this->header->parse();
	}

	public function load( $file ) {
		parent::load( $file );

		$this->parseTableEntries();
		$dataOffset = $this->pos() + count( $this->directory ) * 20;

		$fw = $this->getTempFile( false );
		$fr = $this->f;

		$this->f = $fw;
		$offset  = $this->header->encode();

		foreach ( $this->directory as $entry ) {
			// Read ...
			$this->f = $fr;
			$this->seek( $entry->offset );
			$data = $this->read( $entry->length );

			if ( $entry->length < $entry->origLength ) {
				$data = (string) gzuncompress( $data );
			}

			// Prepare data ...
			$length        = mb_strlen( $data, '8bit' );
			$entry->length = $entry->origLength = $length;
			$entry->offset = $dataOffset;

			// Write ...
			$this->f = $fw;

			// Woff Entry
			$this->seek( $offset );
			$offset += $this->write( $entry->tag, 4 ); // tag
			$offset += $this->writeUInt32( $dataOffset ); // offset
			$offset += $this->writeUInt32( $length ); // length
			$offset += $this->writeUInt32( $length ); // origLength
			$offset += $this->writeUInt32( DirectoryEntry::computeChecksum( $data ) ); // checksum

			// Data
			$this->seek( $dataOffset );
			$dataOffset += $this->write( $data, $length );
		}

		$this->f = $fw;
		$this->seek( 0 );

		// Need to re-parse this, don't know why
		$this->header    = null;
		$this->directory = array();
		$this->parseTableEntries();
	}
}