예제 #1
0
 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);
 }
예제 #2
0
 /// <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);
예제 #3
0
 /// <summary>
 /// When overridden in a derived class, converts the font into its binary representation.
 /// </summary>
 public virtual void Write(OpenTypeFontWriter writer)
 {
 }