public void Read(TTFReader r) { v.x = r.ReadFDot14(); v.y = r.ReadFDot14(); v.z = r.ReadFDot14(); v.w = r.ReadFDot14(); }
/// <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, int axisCount) { this.regionAxes = new List <RegionAxisCoordinates>(); for (int i = 0; i < axisCount; ++i) { RegionAxisCoordinates rac = new RegionAxisCoordinates(); rac.Read(r); this.regionAxes.Add(rac); } }
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, int ct) { if (this.coordinates == null) { this.coordinates = new List <float>(); } for (int i = 0; i < ct; ++i) { coordinates.Add(r.ReadFDot14()); } }
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 regionIndexCount, int shortDeltaCount) { this.deltaData = new List <int>(); for (int i = 0; i < shortDeltaCount; ++i) { deltaData.Add(r.ReadInt16()); } for (int i = 0; i < regionIndexCount - shortDeltaCount; ++i) { deltaData.Add(r.ReadInt8()); } }
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); } }
public void Read(TTFReader r) { this.startCoord = r.ReadFDot14(); this.peakCoord = r.ReadFDot14(); this.endCoord = r.ReadFDot14(); }