public void Read(SimpleBinaryReader reader) { string str; this.FormatStringLength = reader.ReadUInt16(); this.OptionFlags = reader.ReadByte(); reader.Seek(-1, (SeekOrigin)SeekOrigin.Current); reader.ReadUncompressedString((short)this.FormatStringLength, out str); this.FormatString = str; }
public void Read(SimpleBinaryReader reader) { string str; this.FontHeight = ((double)reader.ReadUInt16()) / 20.0; this.InitFontAttribute(reader.ReadUInt16()); this.ColorIndex = reader.ReadUInt16(); this.IsBold = reader.ReadUInt16() == 700; this.SuperScript = reader.ReadUInt16(); this.UnderlineStyle = reader.ReadByte(); this.FontFamily = reader.ReadByte(); this.CharacterSet = reader.ReadByte(); reader.ReadByte(); this.FontNameLength = reader.ReadByte(); reader.ReadUncompressedString(this.FontNameLength, out str); this.FontName = str; }