public List <Mark2Record> mark2Records; // Array of Mark2Records, in Coverage order. public void Read(TTFReader r, int offsets) { r.ReadInt(out this.mark2Count); this.mark2Records = new List <Mark2Record>(); for (int i = 0; i < this.mark2Count; ++i) { Mark2Record m2r = new Mark2Record(); m2r.Read(r, offsets); this.mark2Records.Add(m2r); } }
public List <Mark2Record> markRecords; // Array of MarkRecords, ordered by corresponding glyphs in the associated mark Coverage table. public void Read(TTFReader r) { r.ReadInt(out this.markCount); this.markRecords = new List <Mark2Record>(); for (int i = 0; i < this.markCount; ++i) { Mark2Record mr = new Mark2Record(); mr.Read(r, markCount); this.markRecords.Add(mr); } }
public Mark2Record GetMark2Record(uint i) { Mark2Record m2r = null; if (i < Mark2Count) { ushort sizeofMark2Record = (ushort)(2 * m_ClassCount); uint offset = m_offsetMark2Array + (uint)FieldOffsets.Mark2RecordArray + i*sizeofMark2Record; m2r = new Mark2Record(offset, m_bufTable, m_offsetMark2Array, m_ClassCount); } return m2r; }