FileFontSource Class

Wordize.Fonts.FileFontSource class. Represents the single TrueType font file stored in the file system.

FileFontSource class

Represents the single TrueType font file stored in the file system.

public class FileFontSource : FontSourceBase

Constructors

NameDescription
FileFontSource(string)Ctor.
FileFontSource(string, int)Ctor.
FileFontSource(string, int, string)Ctor.

Properties

NameDescription
CacheKey { get; }The key of this source in the cache.
FilePath { get; }Path to the font file.
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

NameDescription
GetAvailableFonts()Returns list of fonts available via this source.

Examples

Demonstrates how specify file font source.

FileFontSource fileFontSource = new FileFontSource(MyDir + @"MyFonts\NoticiaText-Regular.ttf");
Wordize.Settings.DefaultFontSettings.SetFontsSources(new FontSourceBase[] { fileFontSource });

See Also