GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    FontSettings Class

    Namespace:
    GemBox.Document
    Assembly:
    GemBox.Document.dll

    Contains font related settings which are used when printing, importing or exporting a document to a file format that requires font information.

    • C#
    • VB.NET
    public sealed class FontSettings
    Public NotInheritable Class FontSettings
    Inheritance:
    System.Object
    FontSettings
    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.

    • C#
    • VB.NET
    public string BaseDirectory { get; set; }
    Public Property BaseDirectory As String
    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.

    • C#
    • VB.NET
    public string BaseResourceLocation { get; set; }
    Public Property BaseResourceLocation As String
    Property 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.

    • C#
    • VB.NET
    public Uri BaseUri { get; set; }
    Public Property BaseUri As Uri
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public static string FontsBaseDirectory { get; set; }
    Public Shared Property FontsBaseDirectory As String
    Property 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.

    • C#
    • VB.NET
    public static string FontsBaseResourceLocation { get; set; }
    Public Shared Property FontsBaseResourceLocation As String
    Property Value
    System.String

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

    See Also
    Packaging Fonts with Applications
    Pack URIs in WPF

    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.

    • C#
    • VB.NET
    public static Uri FontsBaseUri { get; set; }
    Public Shared Property FontsBaseUri As Uri
    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).

    • C#
    • VB.NET
    public static event EventHandler<FontFileSelectionEventArgs> FontSelection
    Public 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).

    • C#
    • VB.NET
    public event EventHandler<FontFileSelectionEventArgs> Selection
    Public Event Selection As EventHandler(Of FontFileSelectionEventArgs)
    Event Type
    System.EventHandler<FontFileSelectionEventArgs>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.