# PdfEmbeddedFont

Represents a TrueType font file that should be embedded for a generated standard-font slot.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfEmbeddedFont.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFont.cs#L11)

**Modifiers**

sealed

Represents a TrueType font file that should be embedded for a generated standard-font slot.

## Inheritance

- object
- PdfEmbeddedFont

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [PdfCreateOptions.EmbeddedFonts](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-embeddedfonts)
- Property [PdfVisibleSignatureAppearanceOptions.Font](/api/pdf/officeimo-pdf-pdfvisiblesignatureappearanceoptions/#property-font)

Filter members 

Show inherited

## Constructors

`public PdfEmbeddedFont(PdfStandardFont font, byte[] data, string? fontName = null)` [#](#constructor-ctor-officeimo-pdf-pdfstandardfont-byte-string)

[PdfEmbeddedFont.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFont.cs#L11)

Creates an embedded-font mapping for a standard PDF font slot.

Parameters

**font OfficeIMO.Pdf.PdfStandardFont required**

**data byte[] required**

**fontName string? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfStandardFont Font { get; }` [#](#property-font)

[PdfEmbeddedFont.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFont.cs#L31)

Standard PDF font slot that this font file replaces in generated output.

`public string? FontName { get; }` [#](#property-fontname)

[PdfEmbeddedFont.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFont.cs#L34)

Optional PDF font name override. When null, the TrueType name table is used.

`public byte[] Data { get; }` [#](#property-data)

[PdfEmbeddedFont.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFont.cs#L37)

TrueType font file bytes.

<!-- PowerForge markdown artifact sha256:70AA9DF0AED5585491BB007FF46AECA81595D35AC5052A47E2D19E26B9B7F8B5 -->
