# PdfEmbeddedFontFallbackCandidate

Describes one embedded font candidate used when planning generated PDF text fallback.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfEmbeddedFontFallbackCandidate.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L17)

**Modifiers**

sealed

Describes one embedded font candidate used when planning generated PDF text fallback.

## Inheritance

- object
- PdfEmbeddedFontFallbackCandidate

## 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 1

- Property [PdfEmbeddedFontFallbackSet.Candidates](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackset/#property-candidates)

### Accepted by parameters 1

- Constructor [PdfEmbeddedFontFallbackSet.PdfEmbeddedFontFallbackSet](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackset/#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdfembeddedfontfallbackcandidate) parameter `candidates`

Filter members 

Show inherited

## Constructors

PdfEmbeddedFontFallbackCandidate 3 overloads

`public PdfEmbeddedFontFallbackCandidate(string fontName, byte[] trueTypeFont)` [#](#constructor-ctor-string-byte)

[PdfEmbeddedFontFallbackCandidate.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L17)

Creates a fallback candidate from TrueType or OpenType/CFF font bytes.

Parameters

**fontName string required**

Display name used in fallback segments and diagnostics.

**trueTypeFont byte[] required**

TrueType or OpenType/CFF font bytes to inspect for Unicode glyph coverage.

`public PdfEmbeddedFontFallbackCandidate(string fontName, byte[] trueTypeFont, OfficeFontUnicodeRangeSet unicodeRanges)` [#](#constructor-ctor-string-byte-officeimo-drawing-officefontunicoderangeset)

[PdfEmbeddedFontFallbackCandidate.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L30)

Creates a fallback candidate whose glyph coverage is limited to an explicit Unicode range policy.

Parameters

**fontName string required**

Display name used in fallback segments and diagnostics.

**trueTypeFont byte[] required**

TrueType or OpenType/CFF font bytes to inspect for Unicode glyph coverage.

**unicodeRanges OfficeIMO.Drawing.OfficeFontUnicodeRangeSet required**

Unicode scalars this candidate is allowed to serve.

`public PdfEmbeddedFontFallbackCandidate(PdfEmbeddedFontFamily fontFamily)` [#](#constructor-ctor-officeimo-pdf-pdfembeddedfontfamily)

[PdfEmbeddedFontFallbackCandidate.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L64)

Creates a fallback candidate from a font family. Coverage is planned against the regular face, and bold, italic and bold-italic runs are painted with the family's own faces. Characters a styled face lacks, and styles the family has no face for, are synthesized from the regular face.

Parameters

**fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily required**

Font family whose regular face decides coverage and whose styled faces paint styled runs.

## 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 string FontName { get; }` [#](#property-fontname)

[PdfEmbeddedFontFallbackCandidate.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L86)

Display name used in fallback segments and diagnostics.

`public OfficeFontUnicodeRangeSet UnicodeRanges { get; }` [#](#property-unicoderanges)

[PdfEmbeddedFontFallbackCandidate.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackCandidate.cs#L89)

Unicode scalars this candidate is allowed to serve.

<!-- PowerForge markdown artifact sha256:AEA5FB41492DB14AF3FD4CC16708EDBA62095E1B0DD858C38459D0C516AE8113 -->
