Пример #1
0
        public static BaseScriptList Read(BinaryReaderFont reader)
        {
            long           position = reader.Position;
            BaseScriptList value    = new BaseScriptList {
                baseScriptCount = reader.ReadUInt16()
            };

            if (value.baseScriptCount != 0)
            {
                value.baseScriptRecords = BaseScriptRecord.ReadArray(
                    reader, value.baseScriptCount, position
                    );
            }
            return(value);
        }
Пример #2
0
        public static AxisTable Read(BinaryReaderFont reader)
        {
            long      position = reader.Position;
            AxisTable value    = new AxisTable {
                baseTagListOffset    = reader.ReadUInt16(),
                baseScriptListOffset = reader.ReadUInt16()
            };

            if (value.baseTagListOffset != 0)
            {
                reader.Position   = position + value.baseTagListOffset;
                value.baseTagList = BaseTagList.Read(reader);
            }
            if (value.baseScriptListOffset != 0)
            {
                reader.Position      = position + value.baseScriptListOffset;
                value.baseScriptList = BaseScriptList.Read(reader);
            }
            return(value);
        }