Example #1
0
 public static VariationAxisRecord[] ReadArray(BinaryReaderFont reader, int count)
 {
     VariationAxisRecord[] array = new VariationAxisRecord[count];
     for (int i = 0; i < count; i++)
     {
         array[i] = Read(reader);
     }
     return(array);
 }
Example #2
0
        public static FvarTable Read(BinaryReaderFont reader)
        {
            FvarTable value = new FvarTable {
                majorVersion    = reader.ReadUInt16(),
                minorVersion    = reader.ReadUInt16(),
                axesArrayOffset = reader.ReadUInt16(),
                reserved        = reader.ReadUInt16(),
                axisCount       = reader.ReadUInt16(),
                axisSize        = reader.ReadUInt16(),
                instanceCount   = reader.ReadUInt16(),
                instanceSize    = reader.ReadUInt16(),
            };

            value.axes      = VariationAxisRecord.ReadArray(reader, value.axisCount);
            value.instances = InstanceRecord.ReadArray(reader, value.instanceCount);
            return(value);
        }