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

    Show / Hide Table of Contents

    PdfFonts Class

    Namespace:
    GemBox.Pdf.Content
    Assembly:
    GemBox.Pdf.dll

    Provides enumeration support for PdfFontFamily and PdfFontFace objects.

    • C#
    • VB.NET
    public static class PdfFonts
    Public Module PdfFonts
    Inheritance:
    System.Object
    PdfFonts

    Properties

    StandardFontFaces

    Gets the collection of PdfFontFace objects that represent the PDF standard Type 1 fonts.

    • C#
    • VB.NET
    public static ICollection<PdfFontFace> StandardFontFaces { get; }
    Public Shared ReadOnly Property StandardFontFaces As ICollection(Of PdfFontFace)
    Property Value
    System.Collections.Generic.ICollection<PdfFontFace>

    An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the PDF standard Type 1 fonts.

    See Also
    PDF Specification ISO 32000-1:2008, section '9.6.2.2 Standard Type 1 Fonts (Standard 14 Fonts)'

    StandardFontFamilies

    Gets the collection of PdfFontFamily objects that represent the PDF standard Type 1 fonts.

    • C#
    • VB.NET
    public static ICollection<PdfFontFamily> StandardFontFamilies { get; }
    Public Shared ReadOnly Property StandardFontFamilies As ICollection(Of PdfFontFamily)
    Property Value
    System.Collections.Generic.ICollection<PdfFontFamily>

    An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the PDF standard Type 1 fonts.

    See Also
    PDF Specification ISO 32000-1:2008, section '9.6.2.2 Standard Type 1 Fonts (Standard 14 Fonts)'

    SystemFontFaces

    Gets the collection of PdfFontFace objects from the default system font location.

    • C#
    • VB.NET
    public static ICollection<PdfFontFace> SystemFontFaces { get; }
    Public Shared ReadOnly Property SystemFontFaces As ICollection(Of PdfFontFace)
    Property Value
    System.Collections.Generic.ICollection<PdfFontFace>

    An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the fonts in the system fonts collection.

    SystemFontFamilies

    Gets the collection of PdfFontFamily objects from the default system font location.

    • C#
    • VB.NET
    public static ICollection<PdfFontFamily> SystemFontFamilies { get; }
    Public Shared ReadOnly Property SystemFontFamilies As ICollection(Of PdfFontFamily)
    Property Value
    System.Collections.Generic.ICollection<PdfFontFamily>

    An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the fonts in the system fonts collection.

    Methods

    GetFontFaces(String)

    Returns the collection of PdfFontFace objects from a string value that represents the location of the fonts.

    • C#
    • VB.NET
    public static ICollection<PdfFontFace> GetFontFaces(string location)
    Public Shared Function GetFontFaces(location As String) As ICollection(Of PdfFontFace)
    Parameters
    location
    System.String

    The location that contains the fonts.

    Returns
    System.Collections.Generic.ICollection<PdfFontFace>

    An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the fonts in location.

    Remarks

    If location is null or System.String.Empty, System.IO.Directory.GetCurrentDirectory is used.

    If location is relative, it is converted to absolute with System.IO.Path.GetFullPath(System.String) method.

    GetFontFaces(String, String)

    Returns the collection of PdfFontFace objects embedded as resources in the specified assembly at the specified location.

    Read the Remarks for details about the arguments of the GetFontFaces(String, String) method for desktop and web applications.

    • C#
    • VB.NET
    public static ICollection<PdfFontFace> GetFontFaces(string assemblyName, string location)
    Public Shared Function GetFontFaces(assemblyName As String, location As String) As ICollection(Of PdfFontFace)
    Parameters
    assemblyName
    System.String

    The name of the assembly that contains the fonts.

    location
    System.String

    The location of the fonts in the assembly.

    Returns
    System.Collections.Generic.ICollection<PdfFontFace>

    An System.Collections.Generic.ICollection<T> of PdfFontFace objects embedded as resources in the specified assembly at the specified location.

    GetFontFamilies(String)

    Returns the collection of PdfFontFamily objects from a string value that represents the location of the fonts.

    • C#
    • VB.NET
    public static ICollection<PdfFontFamily> GetFontFamilies(string location)
    Public Shared Function GetFontFamilies(location As String) As ICollection(Of PdfFontFamily)
    Parameters
    location
    System.String

    The location that contains the fonts.

    Returns
    System.Collections.Generic.ICollection<PdfFontFamily>

    An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the fonts in location.

    Remarks

    If location is null or System.String.Empty, System.IO.Directory.GetCurrentDirectory is used.

    If location is relative, it is converted to absolute with System.IO.Path.GetFullPath(System.String) method.

    GetFontFamilies(String, String)

    Returns the collection of PdfFontFamily objects embedded as resources in the specified assembly at the specified location.

    Read the Remarks for details about the arguments of the GetFontFamilies(String, String) method for desktop and web applications.

    • C#
    • VB.NET
    public static ICollection<PdfFontFamily> GetFontFamilies(string assemblyName, string location)
    Public Shared Function GetFontFamilies(assemblyName As String, location As String) As ICollection(Of PdfFontFamily)
    Parameters
    assemblyName
    System.String

    The name of the assembly that contains the fonts.

    location
    System.String

    The location of the fonts in the assembly.

    Returns
    System.Collections.Generic.ICollection<PdfFontFamily>

    An System.Collections.Generic.ICollection<T> of PdfFontFamily objects embedded as resources in the specified assembly at the specified location.

    Examples

    Private fonts example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.