private void DeserlizeFile() { RawFile._index = -1; RawFile.ReadString();//magic number Name = RawFile.ReadString(); Style = RawFile.ReadByte(); Size = (short)RawFile.ReadInt32(); CharsCount = RawFile.ReadInt32(); for (int i = 0; i < CharsCount; i++) { Char.Add((char)RawFile.ReadByte()); Width.Add(RawFile.ReadByte()); Height.Add(RawFile.ReadByte()); var l = RawFile.ReadInt32(); var data = new List <byte>(); for (int dat = 0; dat < l; dat++) { data.Add(RawFile.ReadByte()); } Data.Add(data.ToArray()); } }