Search Results for

    Show / Hide Table of Contents

    Class PdfFontCollection

    Observable collection of fonts

    Inheritance
    System.Object
    PdfFontCollection
    Namespace: IronPdf.Fonts
    Assembly: IronPdf.dll
    Syntax
    public class PdfFontCollection : ObservableCollection<PdfFont>

    Properties

    Item[String]

    Find the first font with the specified font name

    Declaration
    public PdfFont this[string name] { get; }
    Parameters
    Type Name Description
    System.String name

    Font name

    Property Value
    Type Description
    PdfFont

    Font with the specified name

    Methods

    Add(Byte[])

    Add a custom font by file

    Declaration
    public PdfFont Add(byte[] Data)
    Parameters
    Type Name Description
    System.Byte[] Data

    Font data

    Returns
    Type Description
    PdfFont

    Add(String)

    Add a standard font by name

    Declaration
    public PdfFont Add(string Name)
    Parameters
    Type Name Description
    System.String Name

    Standard font name

    Returns
    Type Description
    PdfFont

    Find(String, Boolean)

    Find the first font with the specified font name

    Declaration
    public PdfFont Find(string name, bool skipSubsetFonts = false)
    Parameters
    Type Name Description
    System.String name

    Font name

    System.Boolean skipSubsetFonts

    Optional. Defaults to false. When true, subset fonts are excluded from the search

    Returns
    Type Description
    PdfFont

    Font with the specified name

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.