Click or drag to resize

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 Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public static class FontSettings

The FontSettings type exposes the following members.

Public propertyStatic memberFonts
Gets all the fonts loaded in the current application domain that are usable with GemBox.Document component.
Public propertyStatic memberFontsBaseDirectory
Gets or sets the base directory path where component looks for fonts. Directory path can be absolute or relative to GetCurrentDirectory.
Public propertyStatic memberFontsBaseResourceLocation

Gets or sets the base resource location where component looks for fonts specified as resources inside the local or referenced assembly.

Read Remarks for details about the format of the FontsBaseResourceLocation for Windows and Web applications.

Public propertyStatic memberFontsBaseUri
Gets or sets the base Uri where component looks for fonts. Uri path should end with DirectorySeparatorChar or AltDirectorySeparatorChar.
Public eventStatic memberFontSelection
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).

Setting the custom fonts location is usually used in medium trust environments to bypass file system operations restrictions imposed for file locations that are not under the application's jurisdiction.

For more information, see private fonts example.

See Also