Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }