/** * This will read the required data from the stream. * * @param ttf The font that is being read. * @param data The stream to read the data from. * @throws java.io.IOException If there is an error reading the data. */ public override void Read(TrueTypeFont ttf, TTFDataStream data) { byte[] bytes = data.Read((int)Length); CFFParser parser = new CFFParser(); cffFont = parser.Parse(bytes, new CFFBytesource(font))[0]; initialized = true; }
public override int Read() { return(stream.Read()); }