FontSettings
Leave feedback
On this page
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));
| Constructor | Description |
|---|---|
| FontSettings() |
| 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. |
public FontSettings()
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. |
public static void resetFontSources()
Resets the font sources that have been set before.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.