PhysicalFontInfo

PhysicalFontInfo class

Specifies information about physical font available to Aspose.Words font engine.

public class PhysicalFontInfo

Properties

Name Description
FilePath { get; } Path to the font file if any.
FontFamilyName { get; } Family name of the font.
FullFontName { get; } Full name of the font.
Version { get; } Version string of the font.

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