public function readFontMetadata()
    {
        $fontHandle = fopen($this->fileName, "r");
        $offset = $this->getNameTableOffset($fontHandle);

        fseek($fontHandle, $offset, SEEK_SET);

        $nameTableHeader = fread($fontHandle, 6);

        $numberOfRecords = $this->unpack(substr($nameTableHeader, 2, 2));
        $storageOffset = $this->unpack(substr($nameTableHeader, 4, 2));

        for ($a = 0; $a < $numberOfRecords; $a++) {
            $this->findAndExtractCandidate($fontHandle, $offset, $storageOffset);
        }

        fclose($fontHandle);
    }
public function readFontMetadata()
    {
        $fontHandle = fopen($this->fileName, "r");
        $offset = $this->getNameTableOffset($fontHandle);

        fseek($fontHandle, $offset, SEEK_SET);

        $nameTableHeader = fread($fontHandle, 6);

        $numberOfRecords = $this->unpack(substr($nameTableHeader, 2, 2));
        $storageOffset = $this->unpack(substr($nameTableHeader, 4, 2));

        for ($a = 0; $a < $numberOfRecords; $a++) {
            $this->findAndExtractCandidate($fontHandle, $offset, $storageOffset);
        }

        fclose($fontHandle);
    }
public function readFontMetadata ( ) { $ fontHandle = fopen ( $ this -> fileName , "r" ) ; $ offset = $ this -> getNameTableOffset ( $ fontHandle ) ; fseek ( $ fontHandle , $ offset , SEEK_SET ) ; $ nameTableHeader = fread ( $ fontHandle , 6 ) ; $ numberOfRecords = $ this -> unpack ( substr ( $ nameTableHeader , 2 , 2 ) ) ; $ storageOffset = $ this -> unpack ( substr ( $ nameTableHeader , 4 , 2 ) ) ; for ( $ a = 0 ; $ a < $ numberOfRecords ; $ a ++ ) { $ this -> findAndExtractCandidate ( $ fontHandle , $ offset , $ storageOffset ) ; } fclose ( $ fontHandle ) ; }
Read the font Metadata

@throws \Exception
Read the font Metadata