/// <summary> /// Read the table from a TTFReader. /// </summary> /// <param name="r">The reader.</param> public void Read(TTFReader r) { this.tag = r.ReadString(4); r.ReadInt(out this.checksum); r.ReadInt(out this.offset); r.ReadInt(out this.length); }
public void Read(TTFReader r) { r.ReadInt(out this.format); r.ReadInt(out this.variationRegionListOffset); r.ReadInt(out this.itemVariationDataCount); this.itemVariationDataOffsets = new List <uint>(); for (int i = 0; i < this.itemVariationDataCount; ++i) { itemVariationDataOffsets.Add(r.ReadUInt16()); } }
public void Read(TTFReader r) { r.ReadInt(out this.axisCount); r.ReadInt(out this.regionCount); this.variationRegions = new List <VariationRegion>(); for (int i = 0; i < this.regionCount; ++i) { VariationRegion vr = new VariationRegion(); vr.Read(r, axisCount); this.variationRegions.Add(vr); } }
public void Read(TTFReader r, int axisCount) { r.ReadInt(out this.tupleVariationCount); r.ReadInt(out this.dataOffset); this.tupleVariationHeaders = new List <TupleVariationHeader>(); for (int i = 0; i < this.tupleVariationCount; ++i) { TupleVariationHeader tvh = new TupleVariationHeader(); tvh.Read(r, axisCount); this.tupleVariationHeaders.Add(tvh); } }
public void Read(TTFReader r) { r.ReadInt(out this.itemCount); r.ReadInt(out this.shortDeltaCount); r.ReadInt(out this.regionIndexCount); this.regionIndexes = new List <ushort>(); for (int i = 0; i < this.regionIndexCount; ++i) { this.regionIndexes.Add(r.ReadUInt16()); } this.deltaSets = new List <DeltaSet>(); for (int i = 0; i < this.itemCount; ++i) { DeltaSet ds = new DeltaSet(); ds.Read(r, this.regionIndexCount, this.shortDeltaCount); this.deltaSets.Add(ds); } }