SystemFontSource Class
Wordize.Fonts.SystemFontSource class. Represents all TrueType fonts installed to the system.
SystemFontSource class
Represents all TrueType fonts installed to the system.
public class SystemFontSource : FontSourceBase
Constructors
| Name | Description |
|---|---|
| SystemFontSource() | Ctor. |
| SystemFontSource(int) | Ctor. |
Properties
| Name | Description |
|---|---|
| Priority { get; } | Returns the font source priority. |
| Type { get; } | Returns the type of the font source. |
| WarningCallback { get; set; } | Called during processing of font source when an issue is detected that might result in formatting fidelity loss. |
Methods
| Name | Description |
|---|---|
| GetAvailableFonts() | Returns list of fonts available via this source. |
| static GetSystemFontFolders() | Returns system font folders or empty array if folders are not accessible. |
Examples
Demonstrates how to specify system and additional folder font sources in default font settings.
Wordize.Settings.DefaultFontSettings.SetFontsSources(new FontSourceBase[] { new SystemFontSource(), new FolderFontSource(MyDir + "MyFonts", true) });
See Also
- class FontSourceBase
- namespace Wordize.Fonts
- assembly Wordize