FontResolver.ResolveFont Method

Resolves which font to be used for text in the SVG, for a given source PDF font.

public virtual Font ResolveFont(
	SourceFont sourceFont,
	CancellationToken cancellationToken
)
Namespace
PdfToSvg
Package
PdfToSvg.NET (since v0.8.0)

Parameters

sourceFont  SourceFont
Provides information about the source PDF font.
cancellationToken  CancellationToken
Token for monitoring cancellation requests.

Return Value

Font
The font to be used in the resulting SVG markup. Can be a LocalFont or WebFont.

See Also

FontResolver Class
PdfToSvg Namespace