public static BaseTagList Read(BinaryReaderFont reader) { BaseTagList value = new BaseTagList { baseTagCount = reader.ReadUInt16() }; if (value.baseTagCount != 0) { value.baselineTags = reader.ReadTagArray(value.baseTagCount); } return(value); }
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); }