Example #1
0
        public FontTable(byte[] buf, int offset, int lcbSttbfffn)
        {
            this.lcbSttbfffn = lcbSttbfffn;
            this.fcSttbfffn = offset;

            _stringCount = LittleEndian.GetShort(buf, offset);
            offset += LittleEndianConsts.SHORT_SIZE;
            _extraDataSz = LittleEndian.GetShort(buf, offset);
            offset += LittleEndianConsts.SHORT_SIZE;

            _fontNames = new Ffn[_stringCount]; //Ffn corresponds to a Pascal style String in STTBF.

            for (int i = 0; i < _stringCount; i++)
            {
                _fontNames[i] = new Ffn(buf, offset);
                offset += _fontNames[i].GetSize();
            }
        }
Example #2
0
        public FontTable(byte[] buf, int offset, int lcbSttbfffn)
        {
            this.lcbSttbfffn = lcbSttbfffn;
            this.fcSttbfffn  = offset;

            _stringCount = LittleEndian.GetShort(buf, offset);
            offset      += LittleEndianConsts.SHORT_SIZE;
            _extraDataSz = LittleEndian.GetShort(buf, offset);
            offset      += LittleEndianConsts.SHORT_SIZE;

            _fontNames = new Ffn[_stringCount]; //Ffn corresponds to a Pascal style String in STTBF.

            for (int i = 0; i < _stringCount; i++)
            {
                _fontNames[i] = new Ffn(buf, offset);
                offset       += _fontNames[i].GetSize();
            }
        }