# PdfTextFallbackPlan

Describes how text can be split across embedded fonts before generated PDF rendering.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTextFallbackPlan.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L36)

**Modifiers**

sealed

Describes how text can be split across embedded fonts before generated PDF rendering.

## Inheritance

- object
- PdfTextFallbackPlan

## Usage

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

- Method [PdfEmbeddedFontFallbackSet.PlanText](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackset/#method-plantext-string-string)

Filter members 

Show inherited

## Methods

`public IReadOnlyList<PdfTextRun> ToNamedTextRuns(IReadOnlyList<string> fontFamilyNames, PdfTextRun? styleTemplate = null)` [#](#method-tonamedtextruns-collections-generic-ireadonlylist-system-string-officeimo-pdf-pdftextrun)

[PdfTextFallbackPlan.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L73)

Converts a fully covered fallback plan into rich text runs assigned to registered named font families.

Parameters

**fontFamilyNames System.Collections.Generic.IReadOnlyList<string> required**

Registered named font families ordered the same way as the fallback candidates.

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

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.

ToTextRuns 2 overloads

`public IReadOnlyList<PdfTextRun> ToTextRuns(IReadOnlyList<PdfStandardFont> fontSlots, PdfTextRun? styleTemplate = null)` [#](#method-totextruns-collections-generic-ireadonlylist-officeimo-pdf-pdfstandardfont-officeimo-pdf-pdftextrun)

[PdfTextFallbackPlan.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L36)

Converts a fully covered fallback plan into rich text runs assigned to generated PDF font slots.

Parameters

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

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

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

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> ToTextRuns(IReadOnlyDictionary<int, PdfStandardFont> fontSlots, PdfTextRun? styleTemplate = null)` [#](#method-totextruns-collections-generic-ireadonlydictionary-system-int32-officeimo-pdf-pdfstandardfont-officeimo-pdf-pdftextrun)

[PdfTextFallbackPlan.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L55)

Converts a fully covered fallback plan into rich text runs assigned to generated PDF font slots.

Parameters

**fontSlots System.Collections.Generic.IReadOnlyDictionary<int, OfficeIMO.Pdf.PdfStandardFont> required**

Generated standard-font slots keyed by fallback candidate index.

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

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.

## 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 OriginalText { get; }` [#](#property-originaltext)

[PdfTextFallbackPlan.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L18)

Original text used to create this fallback plan.

`public IReadOnlyList<PdfTextFallbackSegment> Segments { get; }` [#](#property-segments)

[PdfTextFallbackPlan.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L21)

Contiguous text segments that can be rendered by one embedded font candidate.

`public IReadOnlyList<PdfTextEncodingDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[PdfTextFallbackPlan.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L24)

Characters not covered by any candidate font, in source order.

`public bool IsFullyCovered { get; }` [#](#property-isfullycovered)

[PdfTextFallbackPlan.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextFallbackPlan.cs#L27)

True when every non-layout text scalar is covered by one of the candidate fonts.

<!-- PowerForge markdown artifact sha256:60D69CF6636C13ED38876EA6BF9F84FCD15082513F66DBF04E4FC88F5C75DCA4 -->
