API Reference

Class

PdfEmbeddedFontFallbackSet

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

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

Inheritance

  • Object
  • PdfEmbeddedFontFallbackSet

Usage

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

Accepted by parameters

Constructors

public PdfEmbeddedFontFallbackSet(IEnumerable<PdfEmbeddedFontFallbackCandidate> candidates, IEnumerable<PdfStandardFont> fontSlots) #

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

Parameters

candidates System.Collections.Generic.IEnumerable{OfficeIMO.Pdf.PdfEmbeddedFontFallbackCandidate} requiredposition: 0
Fallback font candidates in priority order.
fontSlots System.Collections.Generic.IEnumerable{OfficeIMO.Pdf.PdfStandardFont} requiredposition: 1
Generated standard-font family slots ordered the same way as candidates.

Methods

public IReadOnlyList<PdfTextShapingDiagnostic> AnalyzeAdvancedTextLayout(String text, String source = "", PdfTextShapingMode shapingMode = UnicodeScalar) #
Returns: IReadOnlyList<PdfTextShapingDiagnostic>

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

Parameters

text System.String requiredposition: 0
Text to inspect.
source System.String = "" optionalposition: 1
Optional caller-provided source label such as a block, field, sheet, slide, or converter area.
shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optionalposition: 2
Text shaping mode to use when checking fallback font coverage.

Returns

Advanced text layout diagnostics in source order, with duplicate warning families collapsed.

public PdfTextFallbackPlan PlanText(String text, String source = "", PdfTextShapingMode shapingMode = UnicodeScalar) #
Returns: PdfTextFallbackPlan

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

Parameters

text System.String requiredposition: 0
Text to inspect.
source System.String = "" optionalposition: 1
Optional caller-provided source label such as a block, field, sheet, slide, or converter area.
shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optionalposition: 2
Text shaping mode to use when checking fallback font coverage.

Returns

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

public IReadOnlyList<TextRun> PlanTextRuns(String text, String source = "", TextRun styleTemplate = null, PdfTextShapingMode shapingMode = UnicodeScalar) #
Returns: IReadOnlyList<TextRun>

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

Parameters

text System.String requiredposition: 0
Text to inspect and convert.
source System.String = "" optionalposition: 1
Optional caller-provided source label such as a block, field, sheet, slide, or converter area.
styleTemplate OfficeIMO.Pdf.TextRun = null optionalposition: 2
Optional run whose styling is copied to each generated text run.
shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optionalposition: 3
Text shaping mode to use when checking fallback font coverage.

Returns

Text runs that can be used with rich paragraphs, lists, tables, panels, and canvas text boxes.

public PdfOptions RegisterFonts(PdfOptions options) #
Returns: PdfOptions

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

Parameters

options OfficeIMO.Pdf.PdfOptions requiredposition: 0
PDF options to configure.

Returns

The supplied options for fluent chaining.

public Boolean TryPlanTextRuns(String text, out IReadOnlyList<TextRun> runs, String source = "", TextRun styleTemplate = null, PdfConversionReport report = null, String converter = "OfficeIMO.Pdf", PdfTextShapingMode shapingMode = UnicodeScalar) #
Returns: Boolean

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

Parameters

text System.String requiredposition: 0
Text to inspect and convert.
runs System.Collections.Generic.IReadOnlyList{OfficeIMO.Pdf.TextRun}@ requiredposition: 1
Renderable rich text runs when the plan is fully covered; otherwise an empty collection.
source System.String = "" optionalposition: 2
Optional caller-provided source label such as a block, field, sheet, slide, or converter area.
styleTemplate OfficeIMO.Pdf.TextRun = null optionalposition: 3
Optional run whose styling is copied to each generated text run.
report OfficeIMO.Pdf.PdfConversionReport = null optionalposition: 4
Optional conversion report that receives missing-glyph diagnostics from incomplete plans.
converter System.String = "OfficeIMO.Pdf" optionalposition: 5
Converter or adapter name used when writing diagnostics to report.
shapingMode OfficeIMO.Pdf.PdfTextShapingMode = UnicodeScalar optionalposition: 6
Text shaping mode to use when checking fallback font coverage.

Returns

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

Properties

public IReadOnlyList<PdfEmbeddedFontFallbackCandidate> Candidates { get; } #

Fallback font candidates in priority order.

public IReadOnlyList<PdfStandardFont> FontSlots { get; } #

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