Class GlobalFontSettings
Provides functionality to specify information about the handling of fonts in the current application domain.
public static class GlobalFontSettings
- Inheritance
-
GlobalFontSettings
- Inherited Members
Fields
DefaultFontName_
The name of the default font. This name is obsolete and must not be used anymore.
[Obsolete("DefaultFontName is deprecated. Do not use it anymore. Use Arial instead.")]
public const string DefaultFontName_ = "PlatformDefault"
Field Value
Properties
DefaultFontEncoding
Gets or sets the default font encoding used for XFont objects where encoding is not explicitly specified. If it is not set, the default value is PdfFontEncoding.Automatic. If you are sure your document contains only Windows-1252 characters (see https://en.wikipedia.org/wiki/Windows-1252) set default encoding to PdfFontEncoding.WinAnsi. Must be set only once per app domain.
public static PdfFontEncoding DefaultFontEncoding { get; set; }
Property Value
FallbackFontResolver
Gets or sets the fallback font resolver for the current application. This static function must be called only once and before any font operation was executed by PDFsharp. If this is not easily to obtain, e.g. because your code is running on a web server, you must provide the same instance of your font resolver in every subsequent setting of this property.
public static IFontResolver? FallbackFontResolver { get; set; }
Property Value
FontResolver
Gets or sets the custom font resolver for the current application. This static function must be called only once and before any font operation was executed by PDFsharp. If this is not easily to obtain, e.g. because your code is running on a web server, you must provide the same instance of your font resolver in every subsequent setting of this property.
public static IFontResolver? FontResolver { get; set; }
Property Value
Methods
ResetFontManagement()
Shortcut for PdfSharpCore.ResetFontManagement.
public static void ResetFontManagement()