public void Write(OpenTypeFontWriter writer) { Debug.Assert(Tag.Length == 4); Debug.Assert(Offset != 0); Debug.Assert(Length != 0); writer.WriteTag(Tag); writer.WriteUInt(CheckSum); writer.WriteInt(Offset); writer.WriteUInt((uint)Length); }
/// <summary> /// Converts the font into its binary representation. /// </summary> public override void Write(OpenTypeFontWriter writer) => writer.Write(_irefDirectoryEntry.FontTable._fontData.FontSource.Bytes, _irefDirectoryEntry.Offset, _irefDirectoryEntry.PaddedLength);
/// <summary> /// When overridden in a derived class, converts the font into its binary representation. /// </summary> public virtual void Write(OpenTypeFontWriter writer) { }