static function create_index(&$fh, $cff_offset, $charstringtype) { $index = new CFFFontDictIndex(); $index->cff_offset = $cff_offset; $index->setup($fh); $index->CharStringType = $charstringtype; return $index; }