LoadOptions.FontSettings
LoadOptions FontSettings property. Allows to specify document font settings.
LoadOptions.FontSettings property
Allows to specify document font settings.
public FontSettings FontSettings { get; set; }
Remarks
When loading some formats, Wordize may require to resolve the fonts. For example, when loading HTML documents Wordize may resolve the fonts to perform font fallback.
If set to null
, default static font settings DefaultFontSettings
will be used.
The default value is null
.
Examples
Shows how to set fonts folder in document load options.
FontSettings fontSettings = new FontSettings();
fontSettings.SetFontsFolder(MyDir + "MyFonts", true);
LoadOptions loadOptions = new LoadOptions();
loadOptions.FontSettings = fontSettings;
Converter.Create()
.From(MyDir + "Simple.docx", loadOptions)
.To(ArtifactsDir + "LoadOptions.FontSettings.pdf")
.Execute();
See Also
- class FontSettings
- class LoadOptions
- namespace Wordize.Loading
- assembly Wordize