예제 #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
            {
                Tag      = fontData.ReadTag(),
                CheckSum = fontData.ReadULong(),
                Offset   = fontData.ReadLong(),
                Length   = (int)fontData.ReadULong()
            };

            return(entry);
        }