Config.BaseExt.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using FastReport.Fonts;
  2. using System;
  3. using System.Drawing;
  4. using System.Globalization;
  5. using System.IO;
  6. using System.Reflection;
  7. namespace FastReport.Utils
  8. {
  9. public static partial class Config
  10. {
  11. private static readonly TrueTypeCollection FFontCollection = new TrueTypeCollection();
  12. /// <summary>
  13. /// Get access to font collection
  14. /// </summary>
  15. public static TrueTypeCollection FontCollection
  16. {
  17. get { return FFontCollection; }
  18. }
  19. /// <summary>
  20. /// Additional check FamilyName in function FastReport.Utils.FromString(Type type, string value);
  21. /// By default option is set to FALSE value and engine works in classic mode.
  22. /// If option is set to TRUE value, then engine checks family name of report's font and trying to find correct font within PrivateFontCollection.
  23. /// </summary>
  24. [Obsolete("This check is not used anymore. Use FontManager.AddSubstituteFont to substitute non-existing fonts.")]
  25. public static bool CheckFontFamily { get; set; }
  26. private static void ProcessMainAssembly()
  27. {
  28. new AssemblyInitializer();
  29. #if !FRCORE
  30. new AssemblyInitializerDesignExt();
  31. #endif
  32. new AssemblyInitializerBaseExt();
  33. }
  34. }
  35. }