예제 #1
0
        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());
            }
        }
예제 #2
0
        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);
            }
        }