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 static class FontSettings
    Public Module 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

    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>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.