Ejemplo n.º 1
0
        public void write(string FileName)
        {
            FileStream FileStream = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write);
            FileStream.WriteStruct(this.header);

            if (this.header.revision >= 3)
            {
                FileStream.WriteStruct(this.headerExtraRevision3);
            }

            FileStream.WriteStructVector(dimensionTable);
            FileStream.WriteStructVector(xAdjustTable);
            FileStream.WriteStructVector(yAdjustTable);
            FileStream.WriteStructVector(advanceTable);
            FileStream.WriteStructVector(packedShadowCharMap);

            if (header.revision == 3)
            {
                FileStream.WriteStructVector(charmapCompressionTable1);
                FileStream.WriteStructVector(charmapCompressionTable2);
            }

            FileStream.WriteStructVector(packedCharMap);
            FileStream.WriteStructVector(packedCharPointerTable);

            FileStream.WriteBytes(charData);
        }
Ejemplo n.º 2
0
        public void Write(string FileName)
        {
            var FileStream = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write);
            FileStream.WriteStruct(this.Header);

            if (this.Header.Revision >= 3)
            {
                FileStream.WriteStruct(this.HeaderExtraRevision3);
            }

            FileStream.WriteStructVector(DimensionTable);
            FileStream.WriteStructVector(XAdjustTable);
            FileStream.WriteStructVector(YAdjustTable);
            FileStream.WriteStructVector(AdvanceTable);
            FileStream.WriteStructVector(PackedShadowCharMap);

            if (Header.Revision == 3)
            {
                FileStream.WriteStructVector(CharmapCompressionTable1);
                FileStream.WriteStructVector(CharmapCompressionTable2);
            }

            FileStream.WriteStructVector(PackedCharMap);
            FileStream.WriteStructVector(PackedCharPointerTable);

            FileStream.WriteBytes(CharData);
        }