supportFontFaceRules property
HtmlLoadOptions.supportFontFaceRules property
Gets or sets a value indicating whether to support @font-face rules and whether to load declared fonts.
Default value is false
.
get supportFontFaceRules(): boolean
Remarks
If this option is enabled, fonts declared in @font-face rules are loaded and embedded into the resulting document’s
font definitions (see DocumentBase.fontInfos). This makes the loaded fonts available for rendering but
doesn’t automatically enable embedding of the fonts upon saving. In order to save the document with loaded fonts,
the FontInfoCollection.embedTrueTypeFonts property of the DocumentBase.fontInfos
collection should be set to true
.
Supported font formats are TTF, EOT, and WOFF.
@font-face rules are not supported when loading SVG images.
See Also
- module Aspose.Words.Loading
- class HtmlLoadOptions