FontSettings Class
Contains font related settings which are used when printing, importing or exporting a document to a file format that requires font information.
- Inheritance:
- System.ObjectFontSettings
Remarks
Setting the custom fonts location is usually used in environments without any installed fonts.
For more information, see the Private Fonts example.
Properties
BaseDirectory
Gets or sets the base directory path where the current FontSettings instance looks for fonts. Directory path can be absolute or relative to System.IO.Directory.GetCurrentDirectory.
Property Value
- System.String
The base directory path where the current FontSettings instance looks for fonts.
BaseResourceLocation
Gets or sets the base resource location where the current FontSettings instance looks for fonts specified as resources inside the local or referenced assembly.
public string BaseResourceLocation { get; set; }Public Property BaseResourceLocation As StringProperty Value
- System.String
The base resource location where the current FontSettings instance looks for fonts specified as resources inside the local or referenced assembly.
BaseUri
Gets or sets the base System.Uri where the current FontSettings instance looks for fonts. System.Uri path should end with System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar.
Property Value
- System.Uri
The base System.Uri where the current FontSettings instance looks for fonts.
FontFiles
Gets all fonts usable with the current FontSettings instance.
public IList<FontFile> FontFiles { get; }Public ReadOnly Property FontFiles As IList(Of FontFile)Property Value
- System.Collections.Generic.IList<FontFile>
All fonts usable with the current FontSettings instance.
Fonts
Gets all the fonts loaded in the current application domain that are usable with GemBox.Document component.
public static IList<FontFile> Fonts { get; }Public Shared ReadOnly Property Fonts As IList(Of FontFile)Property Value
- System.Collections.Generic.IList<FontFile>
All the fonts loaded in the current application domain that are usable with GemBox.Document component.
FontsBaseDirectory
Gets or sets the base directory path where component looks for fonts. Directory path can be absolute or relative to System.IO.Directory.GetCurrentDirectory.
public static string FontsBaseDirectory { get; set; }Public Shared Property FontsBaseDirectory As StringProperty Value
- System.String
The base directory path where component looks for fonts.
FontsBaseResourceLocation
Gets or sets the base resource location where component looks for fonts specified as resources inside the local or referenced assembly.
public static string FontsBaseResourceLocation { get; set; }Public Shared Property FontsBaseResourceLocation As StringProperty Value
- System.String
The base resource location where component looks for fonts specified as resources inside the local or referenced assembly.
See Also
FontsBaseUri
Gets or sets the base System.Uri where component looks for fonts. System.Uri path should end with System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar.
Property Value
- System.Uri
The base System.Uri where component looks for fonts.
Events
FontSelection
Occurs when the FontFile must be selected based on the font name, style and weight used in the document and when the fallback font must be selected (if the current FontFile does not contain outlines for the Character).
public static event EventHandler<FontFileSelectionEventArgs> FontSelectionPublic Shared Event FontSelection As EventHandler(Of FontFileSelectionEventArgs)Event Type
- System.EventHandler<FontFileSelectionEventArgs>
Selection
Occurs when the FontFile must be selected based on the font name, style and weight used in the document and when the fallback font must be selected (if the current FontFile does not contain outlines for the Character).
public event EventHandler<FontFileSelectionEventArgs> SelectionPublic Event Selection As EventHandler(Of FontFileSelectionEventArgs)Event Type
- System.EventHandler<FontFileSelectionEventArgs>