Click or drag to resize
Pdf Library for .NET

HtmlToImageWaitForWebFonts Property

Waits for web fonts still loading before the page is measured and printed. True by default.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public bool WaitForWebFonts { get; set; }

Property Value

Boolean
Remarks
A web font first used after the page's load event - by text a script adds, or a style switched later - is not waited for by the load itself; without this wait the page could print in a fallback font while the web font was still downloading. The wait is bounded (10 seconds) and costs nothing when no font is loading. A font that fails to load keeps falling back, as in a browser.
See Also