PhysicalFontInfo Class

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

Inheritance Hierarchy

SystemObject
  Aspose.Words.FontsPhysicalFontInfo

Namespace:  Aspose.Words.Fonts
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0

Syntax

public class PhysicalFontInfo

The PhysicalFontInfo type exposes the following members.

Properties

  NameDescription
Public propertyCode exampleFilePath
Path to the font file if any.
Public propertyCode exampleFontFamilyName
Family name of the font.
Public propertyCode exampleFullFontName
Full name of the font.
Public propertyCode exampleVersion
Version string of the font.

Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)

Examples

Shows how to get available fonts and information about them.
// Add a new folder source which will instruct Aspose.Words to search the following folder for fonts
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