Table of Contents

Class FontPreflight

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

Surveys the distinct font families a resolved document references and runs them through a FontEngine's resolver, producing a FontPreflightReport. A caller can run this before paying for a full conversion to decide whether to install a font, accept the substitution, or abort. This mirrors the external preflight utility that commercial converters ship as a separate tool, here as a first-class API.

public static class FontPreflight
Inheritance
FontPreflight
Inherited Members

Methods

CollectRequestedFonts(ResolvedDocument)

Collects the distinct font families referenced by the document as font keys (family only, normal weight/style — the substitution decision is family-level).

CountAffectedRuns(ResolvedDocument, FontPreflightReport)

Counts the text runs whose font references at least one substituted family from a preflight report. Used to build the aggregated end-of-conversion substitution summary.

Preflight(FontEngine, ResolvedDocument)

Runs a font preflight over every distinct family referenced by the document.