Method CollectRequestedFonts
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).
public static IReadOnlyList<FontKey> CollectRequestedFonts(ResolvedDocument document)
Parameters
documentResolvedDocumentThe resolved document to survey.
Returns
- IReadOnlyList<FontKey>
One key per distinct family, in first-seen order.
Exceptions
- ArgumentNullException
documentis null.