PhysicalFontInfo class

PhysicalFontInfo class

Specifies information about physical font available to Aspose.Words font engine. To learn more, visit the Working with Fonts documentation article.

Properties

NameDescription
embeddingLicensingRightsEmbedding licensing rights for the font.
filePathPath to the font file if any.
fontFamilyNameFamily name of the font.
fullFontNameFull name of the font.
versionVersion 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.
let folderFontSource = [new aw.Fonts.FolderFontSource(base.fontsDir, true)];

for (let fontInfo of folderFontSource.at(0).getAvailableFonts())
{
  console.log("FontFamilyName : {0}", fontInfo.fontFamilyName);
  console.log("FullFontName  : {0}", fontInfo.fullFontName);
  console.log("Version  : {0}", fontInfo.version);
  console.log("FilePath : {0}\n", fontInfo.filePath);
}

See Also