private TrueTypeFontTable ReadFontHeader(uint length, TrueTypeTableEntryList list, BigEndianReader reader) { FontHeader fh = new FontHeader(reader.Position); fh.TableVersion = reader.ReadFixedVersion(); fh.FontRevision = reader.ReadFixedVersion(); fh.ChecksumAdjustment = reader.ReadUInt32(); fh.MagicNumber = reader.ReadUInt32(); fh.FontFlags = (FontHeaderFlags)reader.ReadUInt16(); fh.UnitsPerEm = reader.ReadUInt16(); fh.Created = reader.ReadDateTime(); fh.Modified = reader.ReadDateTime(); fh.XMin = reader.ReadInt16(); fh.YMin = reader.ReadInt16(); fh.XMax = reader.ReadInt16(); fh.YMax = reader.ReadInt16(); fh.MacStyle = (FontStyleFlags)reader.ReadUInt16(); fh.SmallestScreenFont = reader.ReadUInt16(); fh.DirectionHints = (FontDirectionFlags)reader.ReadInt16(); fh.IndexToLocationFormat = (FontIndexLocationFormat)reader.ReadInt16(); fh.GlyphDataFormat = (GlyphDataFormat)reader.ReadInt16(); return(fh); }