private function collectGids($gids) { // Collect the unicode encoding table $unicodeEncodingTable = TTF::getEncodingTable($this->cmap, 3, 1); for ($i = 0; $i < count($gids); $i++) { $orgIndex = $gids[$i]; $description = $this->glyf[$orgIndex]; if (!$this->orgIndexAlreadyExists($orgIndex)) { $unicodeValue = $unicodeEncodingTable == null ? null : TTF::indexToCharacter($unicodeEncodingTable, $orgIndex); //XXXX THANOS $this->TTFchars[] = new TTFchar($unicodeValue, $orgIndex, 0, $description); } } }