Interface IPdfFontObject
Font object for PDF documents
Assembly: IronPdf.dll
Syntax
public interface IPdfFontObject : IPdfDocumentObject
Use IPdfFontObject in IronPDF when C# code works with Iron Software API across implementors. It represents font object for PDF documents, so code can work with Iron Software API uniformly across implementors rather than binding to a concrete type.
Concrete implementors include FontObject, IronPDF concrete implementor. Code that accepts IPdfFontObject works uniformly across these implementors, so applications can read or configure C# PDF features without binding to a specific concrete type.
Most of the usable surface is inherited. The members that carry everyday use of this contract are Client, Ascent, BaseFont, BBoxBottom; consult these first when implementing or consuming IPdfFontObject.
using IronPdf;
// IPdfFontObject is consumed as the API surface for the family of implementors
void Consume(IPdfFontObject target)
{
// Use members defined on the interface; concrete behavior follows the implementor
}
For collection-wide operations and end-to-end examples, see the IronPDF C# documentation for related guides. For collection-wide operations on IPdfFontObject instances, the IronPDF C# documentation lists the relevant container types and their methods. Concrete behavior depends on which implementor of IPdfFontObject is returned at runtime; consult the specific class reference for type-specific members. Polymorphic access through IPdfFontObject lets code work uniformly across the family of implementors, with a cast required only when type-specific behavior is needed. The reference tables below list the full set of members defined on IPdfFontObject along with any inherited members exposed through the contract. In a typical IronPDF C# workflow, IPdfFontObject appears as a parameter or return type at the boundary between the application and the IronPDF API. See the methods table below for the complete set of members defined directly on IPdfFontObject. Implementing IPdfFontObject directly in application code is uncommon; the typical pattern is to consume instances returned from the IronPDF API. When iterating over a collection of IPdfFontObject instances, prefer the inherited members for portable code; downcast only when type-specific behavior is required.
Properties
Ascent
Declaration
Property Value
| Type |
Description |
| System.Single |
|
BaseFont
Declaration
Property Value
| Type |
Description |
| System.String |
|
BBoxBottom
Declaration
float BBoxBottom { get; }
Property Value
| Type |
Description |
| System.Single |
|
BBoxLeft
Declaration
Property Value
| Type |
Description |
| System.Single |
|
BBoxRight
Declaration
Property Value
| Type |
Description |
| System.Single |
|
BBoxTop
Declaration
Property Value
| Type |
Description |
| System.Single |
|
CapHeight
Declaration
Property Value
| Type |
Description |
| System.Single |
|
CharSet
Declaration
Property Value
| Type |
Description |
| System.String |
|
CidOrdering
Declaration
string CidOrdering { get; }
Property Value
| Type |
Description |
| System.String |
|
CidRegistry
Declaration
string CidRegistry { get; }
Property Value
| Type |
Description |
| System.String |
|
CidSet
Declaration
Property Value
| Type |
Description |
| System.String |
|
CidSuppliment
Declaration
int CidSuppliment { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
CidToGidMap
Declaration
string CidToGidMap { get; }
Property Value
| Type |
Description |
| System.String |
|
DescendantFonts
Declaration
IReadOnlyList<IPdfFontObject> DescendantFonts { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyList<IPdfFontObject> |
|
Descent
Declaration
Property Value
| Type |
Description |
| System.Single |
|
DW
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
Encoding
Declaration
Property Value
| Type |
Description |
| System.String |
|
FirstChar
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
Flags
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
FontFamily
Declaration
string FontFamily { get; }
Property Value
| Type |
Description |
| System.String |
|
FontFile
Declaration
Property Value
| Type |
Description |
| System.Byte[] |
|
FontFileSubtype
Declaration
string FontFileSubtype { get; }
Property Value
| Type |
Description |
| System.String |
|
FontName
Declaration
Property Value
| Type |
Description |
| System.String |
|
FontStretch
Declaration
string FontStretch { get; }
Property Value
| Type |
Description |
| System.String |
|
FontWeight
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
GlyphWidths
Declaration
IReadOnlyList<ICidGlyphWidths> GlyphWidths { get; }
Property Value
HasFontDescriptor
Declaration
bool HasFontDescriptor { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasPdfFields
Declaration
bool HasPdfFields { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsCID
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
ItalicAngle
Declaration
float ItalicAngle { get; }
Property Value
| Type |
Description |
| System.Single |
|
LastChar
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
ParentObjNum
Declaration
uint ParentObjNum { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
StemV
Declaration
Property Value
| Type |
Description |
| System.Single |
|
SubType
Declaration
Property Value
| Type |
Description |
| System.String |
|
ToUnicode
Declaration
string ToUnicode { get; }
Property Value
| Type |
Description |
| System.String |
|
Type
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
Widths
Declaration
Property Value
| Type |
Description |
| System.Int32[] |
|
XHeight
Declaration
Property Value
| Type |
Description |
| System.Single |
|