FilePath
PhysicalFontInfo.FilePath property
Path to the font file if any.
public string FilePath { get; }
Examples
Shows how to list available fonts.
// Configure Aspose.Words to source fonts from a custom folder, and then print every available font.
FontSourceBase[] folderFontSource = { new FolderFontSource(FontsDir, true) };
foreach (PhysicalFontInfo fontInfo in folderFontSource[0].GetAvailableFonts())
{
Console.WriteLine("FontFamilyName : {0}", fontInfo.FontFamilyName);
Console.WriteLine("FullFontName : {0}", fontInfo.FullFontName);
Console.WriteLine("Version : {0}", fontInfo.Version);
Console.WriteLine("FilePath : {0}\n", fontInfo.FilePath);
}
See Also
- class PhysicalFontInfo
- namespace Aspose.Words.Fonts
- assembly Aspose.Words