FontSettings
Contents
[
Hide
]
Inheritance: java.lang.Object
public class FontSettings
Provides methods for working with sources to look for TrueType fonts.
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));
Constructors
Constructor | Description |
---|---|
FontSettings() |
Methods
Method | Description |
---|---|
setFontSources(FontSource[] fontSources) | Sets the sources to look for TrueType fonts when rendering documents. |
resetFontSources() | Resets the font sources that have been set before. |
FontSettings()
public FontSettings()
setFontSources(FontSource[] fontSources)
public static void setFontSources(FontSource[] fontSources)
Sets the sources to look for TrueType fonts when rendering documents.
Parameters:
Parameter | Type | Description |
---|---|---|
fontSources | FontSource[] | The font sources to set. |
resetFontSources()
public static void resetFontSources()
Resets the font sources that have been set before.