public static GlyphBitmapData2 Read(BinaryReaderFont reader, int byteSize) { GlyphBitmapData2 value = new GlyphBitmapData2 { smallMetrics = SmallGlyphMetrics.Read(reader) }; byteSize -= SmallGlyphMetrics.ByteSize; value.imageData = reader.ReadBytes(byteSize); return(value); }
public static GlyphBitmapData17 Read(BinaryReaderFont reader) { GlyphBitmapData17 value = new GlyphBitmapData17 { glyphMetrics = SmallGlyphMetrics.Read(reader), dataLen = reader.ReadUInt32() }; value.data = reader.ReadBytes((int)value.dataLen); return(value); }
public static GlyphBitmapData8 Read(BinaryReaderFont reader) { GlyphBitmapData8 value = new GlyphBitmapData8 { smallMetrics = SmallGlyphMetrics.Read(reader), pad = reader.ReadByte(), numComponents = reader.ReadUInt16() }; value.components = EbdtComponent.ReadArray(reader, value.numComponents); return(value); }