FolderFontSourceType Property

Returns the type of the font source.

Namespace:  Aspose.Words.Fonts
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public override FontSourceType Type { get; }

Property Value

Type: FontSourceType
Examples
Shows how to create a folder font source.
Document doc = new Document();

// Create a font settings object for our document
doc.FontSettings = new FontSettings();

// Create a font source from a folder that contains font files
FolderFontSource folderFontSource = new FolderFontSource(FontsDir, false, 1);

// Add that source to our document
doc.FontSettings.SetFontsSources(new FontSourceBase[] { folderFontSource });

Assert.AreEqual(FontsDir, folderFontSource.FolderPath);
Assert.AreEqual(false, folderFontSource.ScanSubfolders);
Assert.AreEqual(FontSourceType.FontsFolder, folderFontSource.Type);
Assert.AreEqual(1, folderFontSource.Priority);
See Also