FRPrivateFontCollection.cs 430 B

123456789101112131415
  1. using System;
  2. namespace FastReport.Utils
  3. {
  4. /// <summary>
  5. /// A wrapper around PrivateFontCollection.
  6. /// </summary>
  7. [Obsolete("Use FastReport.FontManager instead")]
  8. public partial class FRPrivateFontCollection
  9. {
  10. public bool AddFontFile(string filename) => FontManager.AddFont(filename);
  11. public void AddMemoryFont(IntPtr memory, int length) => FontManager.AddFont(memory, length);
  12. }
  13. }