/** * Reads information from the given stream. * * @param StreamInterface $stream The stream to read from. */ public function read(StreamInterface $stream) { $this->tableVersionNumber = $stream->readFixed(); $this->ascender = $stream->readFWord(); $this->descender = $stream->readFWord(); $this->lineGap = $stream->readFWord(); $this->advanceWidthMax = $stream->readUFWord(); $this->minLeftSideBearing = $stream->readFWord(); $this->minRightSideBearing = $stream->readFWord(); $this->xMaxExtent = $stream->readFWord(); $this->caretSlopeRise = $stream->readShort(); $this->caretSlopeRun = $stream->readShort(); $this->caretOffset = $stream->readShort(); // Read reserved values: $stream->readShort(); $stream->readShort(); $stream->readShort(); $stream->readShort(); $this->metricDataFormat = $stream->readShort(); $this->numberOfHMetrics = $stream->readUShort(); }