public static EbdtComponent[] ReadArray(BinaryReaderFont reader, int count) { EbdtComponent[] array = new EbdtComponent[count]; for (int i = 0; i < count; i++) { array[i] = Read(reader); } return(array); }
public static GlyphBitmapData9 Read(BinaryReaderFont reader) { GlyphBitmapData9 value = new GlyphBitmapData9 { bigMetrics = BigGlyphMetrics.Read(reader), numComponents = reader.ReadUInt16() }; value.components = EbdtComponent.ReadArray(reader, value.numComponents); 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); }