コード例 #1
0
 public void Read(OpenTypeFontface fontData)
 {
     Tag      = fontData.ReadTag();
     CheckSum = fontData.ReadULong();
     Offset   = fontData.ReadLong();
     Length   = (int)fontData.ReadULong();
 }
コード例 #2
0
        /// <summary>
        /// Creates and reads a TableDirectoryEntry from the font image.
        /// </summary>
        public static TableDirectoryEntry ReadFrom(OpenTypeFontface fontData)
        {
            TableDirectoryEntry entry = new TableDirectoryEntry();

            entry.Tag      = fontData.ReadTag();
            entry.CheckSum = fontData.ReadULong();
            entry.Offset   = fontData.ReadLong();
            entry.Length   = (int)fontData.ReadULong();
            return(entry);
        }