Пример #1
0
 public void Load(string path, NFormatType formatType)
 {
     using (BinaryReader br = new BinaryReader(File.OpenRead(path), Encoding.UTF8))
     {
         this.Header      = MieFontHeader.Read(br, formatType);
         this.FontEntries = MieFontEntries.Read(br);
         this.Footer      = MieFontFooter.Read(br, formatType);
     }
 }
Пример #2
0
        public static MieFontEntries Read(BinaryReader br)
        {
            MieFontEntries result = new MieFontEntries();

            result.Count = br.ReadInt32();
            for (int i = 0; i < result.Count; i++)
            {
                MieFontEntry entry = MieFontEntry.Read(br);
                result.Items.Add(entry);
            }

            return(result);
        }