# PdfEmbeddedFontFallbackSet

Pairs embedded fallback candidates with generated PDF font slots used for rendering planned fallback runs.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Pairs embedded fallback candidates with generated PDF font slots used for rendering planned fallback runs.

## Inheritance

- object
- PdfEmbeddedFontFallbackSet

## Usage

Explore 6 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.EmbeddedFontFallbacks](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-embeddedfontfallbacks)
- Property [PdfFormFillerOptions.AppearanceFontFallbacks](/api/pdf/officeimo-pdf-pdfformfilleroptions/#property-appearancefontfallbacks)

### Accepted by parameters 4

- Method [PdfCreateOptions.RegisterEmbeddedFontFallbacks](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-registerembeddedfontfallbacks-officeimo-pdf-pdfembeddedfontfallbackset) parameter `fallbackSet`
- Method [PdfFormFillerOptions.UseAppearanceFontFallbacks](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefontfallbacks-officeimo-pdf-pdfembeddedfontfallbackset) parameter `fallbackSet`
- Method [PdfPageBuilder.RegisterEmbeddedFontFallbacks](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-registerembeddedfontfallbacks-officeimo-pdf-pdfembeddedfontfallbackset) parameter `fallbackSet`
- Method [PdfParagraph.AddFallbackText](/api/pdf/officeimo-pdf-pdfparagraph/#method-addfallbacktext-officeimo-pdf-pdfembeddedfontfallbackset-string-string) parameter `fallbackSet`

Filter members 

Show inherited

## Constructors

PdfEmbeddedFontFallbackSet 2 overloads

`public PdfEmbeddedFontFallbackSet(IEnumerable<PdfEmbeddedFontFallbackCandidate> candidates)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdfembeddedfontfallbackcandidate)

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

Creates a reusable fallback set whose candidates are registered as named embedded families. Named fallback families do not consume the Helvetica, Times, or Courier compatibility slots, so they can coexist with document fonts that already use all three slots.

Parameters

**candidates System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfEmbeddedFontFallbackCandidate> required**

Fallback font candidates in priority order. Candidate names must be unique.

`public PdfEmbeddedFontFallbackSet(IEnumerable<PdfEmbeddedFontFallbackCandidate> candidates, IEnumerable<PdfStandardFont> fontSlots)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdfembeddedfontfallbackcandidate-collections-generic-ienumerable-officeimo-pdf-pdfstandardfont)

[PdfEmbeddedFontFallbackSet.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L35)

Creates a reusable fallback set from prioritized candidates and matching generated font slots.

Parameters

**candidates System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfEmbeddedFontFallbackCandidate> required**

Fallback font candidates in priority order.

**fontSlots System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfStandardFont> required**

Generated standard-font family slots ordered the same way as candidates.

## Methods

`public IReadOnlyList<PdfTextShapingDiagnostic> AnalyzeAdvancedTextLayout(string text, string source = "", PdfTextShapingMode shapingMode = UnicodeScalar)` [#](#method-analyzeadvancedtextlayout-string-string-officeimo-pdf-pdftextshapingmode)

[PdfEmbeddedFontFallbackSet.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L167)

Finds advanced-layout warnings for text planned against this fallback set, including selected-font OpenType feature gaps.

Parameters

**text string required**

Text to inspect.

**source string = "" optional**

Optional caller-provided source label such as a block, field, sheet, slide, or converter area.

**shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optional**

Text shaping mode to use when checking fallback font coverage.

Returns

`IReadOnlyList<PdfTextShapingDiagnostic>` Advanced text layout diagnostics in source order, with duplicate warning families collapsed.

PlanText 2 overloads

`public PdfTextFallbackPlan PlanText(string text, string source)` [#](#method-plantext-string-string)

[PdfEmbeddedFontFallbackSet.cs:153](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L153)

Plans fallback coverage for text using this set's prioritized candidates.

Parameters

**text string required**

Text to inspect.

**source string required**

Optional caller-provided source label such as a block, field, sheet, slide, or converter area.

Returns

`PdfTextFallbackPlan` A fallback plan with covered text segments and missing-glyph diagnostics.

`public PdfTextFallbackPlan PlanText(string text, string source = "", PdfTextShapingMode shapingMode = UnicodeScalar)` [#](#method-plantext-string-string-officeimo-pdf-pdftextshapingmode)

[PdfEmbeddedFontFallbackSet.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L157)

Plans fallback coverage with an explicit text shaping mode.

Parameters

**text string required**

**source string = "" optional**

**shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optional**

Returns

`PdfTextFallbackPlan`

PlanTextRuns 2 overloads

`public IReadOnlyList<PdfTextRun> PlanTextRuns(string text, string source, PdfTextRun? styleTemplate)` [#](#method-plantextruns-string-string-officeimo-pdf-pdftextrun)

[PdfEmbeddedFontFallbackSet.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L177)

Plans text and converts a fully covered plan into styled rich text runs assigned to this set's generated font slots.

Parameters

**text string required**

Text to inspect and convert.

**source string required**

Optional caller-provided source label such as a block, field, sheet, slide, or converter area.

**styleTemplate OfficeIMO.Pdf.PdfTextRun? required**

Optional run whose styling is copied to each generated text run.

Returns

`IReadOnlyList<PdfTextRun>` Text runs that can be used with rich paragraphs, lists, tables, panels, and canvas text boxes.

`public IReadOnlyList<PdfTextRun> PlanTextRuns(string text, string source = "", PdfTextRun? styleTemplate = null, PdfTextShapingMode shapingMode = UnicodeScalar)` [#](#method-plantextruns-string-string-officeimo-pdf-pdftextrun-officeimo-pdf-pdftextshapingmode)

[PdfEmbeddedFontFallbackSet.cs:181](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L181)

Plans text runs with an explicit text shaping mode.

Parameters

**text string required**

**source string = "" optional**

**styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optional**

**shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optional**

Returns

`IReadOnlyList<PdfTextRun>`

`public PdfCreateOptions RegisterFonts(PdfCreateOptions options)` [#](#method-registerfonts-officeimo-pdf-pdfcreateoptions)

[PdfEmbeddedFontFallbackSet.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L84)

Registers every fallback candidate into its generated font family slot, including bold and italic variants.

Parameters

**options OfficeIMO.Pdf.PdfCreateOptions required**

PDF options to configure.

Returns

`PdfCreateOptions` The supplied options for fluent chaining.

TryPlanTextRuns 2 overloads

`public bool TryPlanTextRuns(string text, out IReadOnlyList<PdfTextRun> runs, string source, PdfTextRun? styleTemplate, PdfConversionReport? report, string converter)` [#](#method-tryplantextruns-string-collections-generic-ireadonlylist-officeimo-pdf-pdftextrun-string-officeimo-pdf-pdftextrun-officeimo-pdf-pdfconversionreport-string)

[PdfEmbeddedFontFallbackSet.cs:205](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L205)

Plans text and returns renderable rich text runs only when every non-layout scalar is covered.

Parameters

**text string required**

Text to inspect and convert.

**runs System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfTextRun> required**

Renderable rich text runs when the plan is fully covered; otherwise an empty collection.

**source string required**

Optional caller-provided source label such as a block, field, sheet, slide, or converter area.

**styleTemplate OfficeIMO.Pdf.PdfTextRun? required**

Optional run whose styling is copied to each generated text run.

**report OfficeIMO.Pdf.PdfConversionReport? required**

Optional conversion report that receives missing-glyph diagnostics from incomplete plans.

**converter string required**

Converter or adapter name used when writing diagnostics to report.

Returns

`bool` true when runs contains a fully covered renderable plan; otherwise false.

`public bool TryPlanTextRuns(string text, out IReadOnlyList<PdfTextRun> runs, string source = "", PdfTextRun? styleTemplate = null, PdfConversionReport? report = null, string converter = "OfficeIMO.Pdf", PdfTextShapingMode shapingMode = UnicodeScalar)` [#](#method-tryplantextruns-string-collections-generic-ireadonlylist-officeimo-pdf-pdftextrun-string-officeimo-pdf-pdftextrun-officeimo-pdf-pdfconversionreport-string-officeimo-pdf-pdftextshapingmode)

[PdfEmbeddedFontFallbackSet.cs:216](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L216)

Tries to plan renderable text runs with an explicit text shaping mode.

Parameters

**text string required**

**runs System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfTextRun> required**

**source string = "" optional**

**styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optional**

**report OfficeIMO.Pdf.PdfConversionReport? = null optional**

**converter string = "OfficeIMO.Pdf" optional**

**shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optional**

Returns

`bool`

## 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 IReadOnlyList<PdfEmbeddedFontFallbackCandidate> Candidates { get; }` [#](#property-candidates)

[PdfEmbeddedFontFallbackSet.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L60)

Fallback font candidates in priority order.

`public IReadOnlyList<PdfStandardFont> FontSlots { get; }` [#](#property-fontslots)

[PdfEmbeddedFontFallbackSet.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L63)

Generated standard-font family slots ordered the same way as [PdfEmbeddedFontFallbackSet.Candidates](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackset/).

`public IReadOnlyList<string> FontFamilyNames { get; }` [#](#property-fontfamilynames)

[PdfEmbeddedFontFallbackSet.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L69)

Named embedded font families ordered the same way as [PdfEmbeddedFontFallbackSet.Candidates](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackset/). This is populated when the fallback set was created without compatibility slots.

`public bool UsesNamedFontFamilies { get; }` [#](#property-usesnamedfontfamilies)

[PdfEmbeddedFontFallbackSet.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFallbackSet.cs#L72)

True when fallback runs use named embedded font families instead of compatibility slots.

<!-- PowerForge markdown artifact sha256:725CE581F5322FE7B20D6BB937E6A8E691DB3EF2123B71BBDCD7366FBFF8989D -->
