public class FontSettings extends Object
The FontSettings class is used to specify and manage sources for locating TrueType fonts. It provides methods to add and reset font sources for the GroupDocs.Viewer API.
Example usage:
FontSettings.setFontSources(new FolderFontSource("/path/to/fonts/folder", SearchOption.ALL_FOLDERS));
FontSource,
FolderFontSource| Constructor and Description |
|---|
FontSettings() |
| Modifier and Type | Method and Description |
|---|---|
static void |
resetFontSources()
Resets the font sources that have been set before.
|
static void |
setFontSources(FontSource... fontSources)
Sets the sources to look for TrueType fonts when rendering documents.
|
public static void resetFontSources()
Resets the font sources that have been set before.
public static void setFontSources(FontSource... fontSources)
Sets the sources to look for TrueType fonts when rendering documents.
fontSources - The font sources to set.IllegalArgumentException - if fontSources is null.Copyright © 2024. All rights reserved.