예제 #1
0
파일: Tuple.cs 프로젝트: Reavenk/Berny_Core
 public void Read(TTFReader r)
 {
     v.x = r.ReadFDot14();
     v.y = r.ReadFDot14();
     v.z = r.ReadFDot14();
     v.w = r.ReadFDot14();
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 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);
     }
 }
예제 #4
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());
            }
        }
예제 #5
0
파일: Tuple.cs 프로젝트: Reavenk/Berny_Core
        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());
            }
        }
예제 #6
0
        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);
            }
        }
예제 #7
0
        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());
            }
        }
예제 #8
0
        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);
            }
        }
예제 #9
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);
            }
        }
예제 #10
0
 public void Read(TTFReader r)
 {
     this.startCoord = r.ReadFDot14();
     this.peakCoord  = r.ReadFDot14();
     this.endCoord   = r.ReadFDot14();
 }