Interface IFontResolver
- Namespace
- NetPdf
- Assembly
- NetPdf.dll
Resolves a font query (family + weight + style + script) to a font face. NetPdf falls back to system font enumeration if no resolver is set, but custom resolvers can ship fonts with the application or fetch them from a private CDN.
public interface IFontResolver
Methods
ResolveAsync(FontQuery, CancellationToken)
Return a font face matching query, or null if no match is
available — the next entry in the fallback chain will be tried.
ValueTask<FontFaceData?> ResolveAsync(FontQuery query, CancellationToken ct)
Parameters
queryFontQueryctCancellationToken