Beispiel #1
0
 public static FeatMinMaxRecord[] ReadArray(BinaryReaderFont reader, int count)
 {
     FeatMinMaxRecord[] array = new FeatMinMaxRecord[count];
     for (int i = 0; i < count; i++)
     {
         array[i] = Read(reader);
     }
     return(array);
 }
Beispiel #2
0
        public static MinMax Read(BinaryReaderFont reader)
        {
            MinMax value = new MinMax {
                minCoord        = reader.ReadUInt16(),
                maxCoord        = reader.ReadUInt16(),
                featMinMaxCount = reader.ReadUInt16()
            };

            if (value.featMinMaxCount != 0)
            {
                value.featMinMaxRecords = FeatMinMaxRecord.ReadArray(
                    reader, value.featMinMaxCount
                    );
            }
            return(value);
        }