public void Read(OpenTypeFontface fontData) { Tag = fontData.ReadTag(); CheckSum = fontData.ReadULong(); Offset = fontData.ReadLong(); Length = (int)fontData.ReadULong(); }
/// <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); }