search/mag_sel search/close
Aspose::Words::Fonts::PhysicalFontInfo Class Reference

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

Examples

Shows how to list available fonts.

// Configure Aspose.Words to source fonts from a custom folder, and then print every available font.
ArrayPtr<SharedPtr<FontSourceBase>> folderFontSource = MakeArray<SharedPtr<FontSourceBase>>({MakeObject<FolderFontSource>(FontsDir, true)});
for (const auto& fontInfo : System::IterateOver(folderFontSource[0]->GetAvailableFonts()))
{
std::cout << "FontFamilyName : " << fontInfo->get_FontFamilyName() << std::endl;
std::cout << "FullFontName : " << fontInfo->get_FullFontName() << std::endl;
std::cout << "Version : " << fontInfo->get_Version() << std::endl;
std::cout << "FilePath : " << fontInfo->get_FilePath() << "\n" << std::endl;
}

#include <Aspose.Words.Cpp/Fonts/PhysicalFontInfo.h>

+ Inheritance diagram for Aspose::Words::Fonts::PhysicalFontInfo:

Public Member Functions

String get_FilePath () const
 Path to the font file if any. More...
 
String get_FontFamilyName () const
 Family name of the font. More...
 
String get_FullFontName () const
 Full name of the font. More...
 
String get_Version () const
 Version string of the font. More...
 
virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 

Static Public Member Functions

static const TypeInfoType ()
 

Member Function Documentation

◆ get_FilePath()

System::String Aspose::Words::Fonts::PhysicalFontInfo::get_FilePath ( ) const

Path to the font file if any.

Examples

Shows how to list available fonts.

// Configure Aspose.Words to source fonts from a custom folder, and then print every available font.
ArrayPtr<SharedPtr<FontSourceBase>> folderFontSource = MakeArray<SharedPtr<FontSourceBase>>({MakeObject<FolderFontSource>(FontsDir, true)});
for (const auto& fontInfo : System::IterateOver(folderFontSource[0]->GetAvailableFonts()))
{
std::cout << "FontFamilyName : " << fontInfo->get_FontFamilyName() << std::endl;
std::cout << "FullFontName : " << fontInfo->get_FullFontName() << std::endl;
std::cout << "Version : " << fontInfo->get_Version() << std::endl;
std::cout << "FilePath : " << fontInfo->get_FilePath() << "\n" << std::endl;
}

◆ get_FontFamilyName()

System::String Aspose::Words::Fonts::PhysicalFontInfo::get_FontFamilyName ( ) const

Family name 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.
ArrayPtr<SharedPtr<FontSourceBase>> folderFontSource = MakeArray<SharedPtr<FontSourceBase>>({MakeObject<FolderFontSource>(FontsDir, true)});
for (const auto& fontInfo : System::IterateOver(folderFontSource[0]->GetAvailableFonts()))
{
std::cout << "FontFamilyName : " << fontInfo->get_FontFamilyName() << std::endl;
std::cout << "FullFontName : " << fontInfo->get_FullFontName() << std::endl;
std::cout << "Version : " << fontInfo->get_Version() << std::endl;
std::cout << "FilePath : " << fontInfo->get_FilePath() << "\n" << std::endl;
}

◆ get_FullFontName()

System::String Aspose::Words::Fonts::PhysicalFontInfo::get_FullFontName ( ) const

Full name 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.
ArrayPtr<SharedPtr<FontSourceBase>> folderFontSource = MakeArray<SharedPtr<FontSourceBase>>({MakeObject<FolderFontSource>(FontsDir, true)});
for (const auto& fontInfo : System::IterateOver(folderFontSource[0]->GetAvailableFonts()))
{
std::cout << "FontFamilyName : " << fontInfo->get_FontFamilyName() << std::endl;
std::cout << "FullFontName : " << fontInfo->get_FullFontName() << std::endl;
std::cout << "Version : " << fontInfo->get_Version() << std::endl;
std::cout << "FilePath : " << fontInfo->get_FilePath() << "\n" << std::endl;
}

◆ get_Version()

System::String Aspose::Words::Fonts::PhysicalFontInfo::get_Version ( ) const

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.
ArrayPtr<SharedPtr<FontSourceBase>> folderFontSource = MakeArray<SharedPtr<FontSourceBase>>({MakeObject<FolderFontSource>(FontsDir, true)});
for (const auto& fontInfo : System::IterateOver(folderFontSource[0]->GetAvailableFonts()))
{
std::cout << "FontFamilyName : " << fontInfo->get_FontFamilyName() << std::endl;
std::cout << "FullFontName : " << fontInfo->get_FullFontName() << std::endl;
std::cout << "Version : " << fontInfo->get_Version() << std::endl;
std::cout << "FilePath : " << fontInfo->get_FilePath() << "\n" << std::endl;
}

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::Fonts::PhysicalFontInfo::GetType ( ) const
overridevirtual

Reimplemented from System::Object.

◆ Is()

virtual bool Aspose::Words::Fonts::PhysicalFontInfo::Is ( const System::TypeInfo target) const
overridevirtual

Reimplemented from System::Object.

◆ Type()

static const System::TypeInfo& Aspose::Words::Fonts::PhysicalFontInfo::Type ( )
static