Search Results for

    Show / Hide Table of Contents

    Class PdfFont

    Inheritance
    System.Object
    PdfFont
    Implements
    IronSoftware.IDocumentFontObject
    IronSoftware.IDocumentObject
    Namespace: IronPdf.Fonts
    Assembly: IronPdf.dll
    Syntax
    public class PdfFont : Object

    Constructors

    PdfFont(StandardFont)

    Declaration
    public PdfFont(StandardFont font)
    Parameters
    Type Name Description
    StandardFont font

    PdfFont(FontTypes)

    Declaration
    public PdfFont(FontTypes font)
    Parameters
    Type Name Description
    IronSoftware.Drawing.FontTypes font

    PdfFont(IPdfClient, IDocumentId, UInt32, Boolean, Boolean, String, FontType, UInt32)

    Declaration
    public PdfFont(IPdfClient client, IDocumentId id, uint obj_num, bool is_embedded, bool is_subsetted, string name, FontType type, uint descendantFontObjNum = 0U)
    Parameters
    Type Name Description
    IronSoftware.Pdfium.IPdfClient client
    IronSoftware.IDocumentId id
    System.UInt32 obj_num
    System.Boolean is_embedded
    System.Boolean is_subsetted
    System.String name
    FontType type
    System.UInt32 descendantFontObjNum

    PdfFont(String)

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

    Properties

    DescendantFontObjNum

    Declaration
    public uint DescendantFontObjNum { get; }
    Property Value
    Type Description
    System.UInt32

    DocumentId

    Declaration
    public IDocumentId DocumentId { get; set; }
    Property Value
    Type Description
    IronSoftware.IDocumentId

    FontData

    Declaration
    public byte[] FontData { get; set; }
    Property Value
    Type Description
    System.Byte[]

    FontSize

    Declaration
    public float FontSize { get; set; }
    Property Value
    Type Description
    System.Single

    IsEmbedded

    Declaration
    public bool IsEmbedded { get; }
    Property Value
    Type Description
    System.Boolean

    IsSubsetted

    Declaration
    public bool IsSubsetted { get; }
    Property Value
    Type Description
    System.Boolean

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    ObjNum

    Declaration
    public uint ObjNum { get; set; }
    Property Value
    Type Description
    System.UInt32

    PageIndex

    Declaration
    public uint PageIndex { get; set; }
    Property Value
    Type Description
    System.UInt32

    Type

    Declaration
    public FontType Type { get; }
    Property Value
    Type Description
    FontType

    Methods

    Embed(Byte[])

    Declaration
    public void Embed(byte[] Data = null)
    Parameters
    Type Name Description
    System.Byte[] Data

    IsValidStandardFont(String)

    Declaration
    public static bool IsValidStandardFont(string fontName)
    Parameters
    Type Name Description
    System.String fontName
    Returns
    Type Description
    System.Boolean

    ReplaceWith(Byte[])

    Declaration
    public PdfFont ReplaceWith(byte[] FontData)
    Parameters
    Type Name Description
    System.Byte[] FontData
    Returns
    Type Description
    PdfFont

    ReplaceWith(String)

    Declaration
    public PdfFont ReplaceWith(string FontName)
    Parameters
    Type Name Description
    System.String FontName
    Returns
    Type Description
    PdfFont

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Unembed()

    Declaration
    public void Unembed()

    Operators

    Implicit(PdfFont to FontTypes)

    Declaration
    public static implicit operator FontTypes(PdfFont src)
    Parameters
    Type Name Description
    PdfFont src
    Returns
    Type Description
    IronSoftware.Drawing.FontTypes

    Implicit(FontTypes to PdfFont)

    Declaration
    public static implicit operator PdfFont(FontTypes src)
    Parameters
    Type Name Description
    IronSoftware.Drawing.FontTypes src
    Returns
    Type Description
    PdfFont

    Implements

    IronSoftware.IDocumentFontObject
    IronSoftware.IDocumentObject
    ☀
    ☾
    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.