FontSourceBase Class |
Namespace: Aspose.Words.Fonts
The FontSourceBase type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetAvailableFonts |
Returns list of fonts available via this source.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(); // Create a font settings object for our document doc.FontSettings = new FontSettings(); // Create a font source from a file in our system FileFontSource fileFontSource = new FileFontSource(MyDir + "Alte DIN 1451 Mittelschrift.ttf", 0); // Import the font source into our document doc.FontSettings.SetFontsSources(new FontSourceBase[] { fileFontSource }); Assert.AreEqual(MyDir + "Alte DIN 1451 Mittelschrift.ttf", fileFontSource.FilePath); Assert.AreEqual(FontSourceType.FontFile, fileFontSource.Type); Assert.AreEqual(0, fileFontSource.Priority);