Aspose::Words::Fonts::PhysicalFontInfo::get_EmbeddingLicensingRights method
PhysicalFontInfo::get_EmbeddingLicensingRights method
Embedding licensing rights for the font.
const System::SharedPtr<Aspose::Words::Fonts::FontEmbeddingLicensingRights> & Aspose::Words::Fonts::PhysicalFontInfo::get_EmbeddingLicensingRights() const
Examples
Shows how to get license rights information for embedded fonts (PhysicalFontInfo).
System::SharedPtr<Aspose::Words::Fonts::FontSettings> settings = Aspose::Words::Fonts::FontSettings::get_DefaultInstance();
System::SharedPtr<Aspose::Words::Fonts::FontSourceBase> source = settings->GetFontsSources()->idx_get(0);
// Get the list of available fonts.
System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Words::Fonts::PhysicalFontInfo>>> fontInfos = source->GetAvailableFonts();
for (auto&& fontInfo : System::IterateOver(fontInfos))
{
if (fontInfo->get_EmbeddingLicensingRights() != nullptr)
{
std::cout << System::EnumGetName(fontInfo->get_EmbeddingLicensingRights()->get_EmbeddingUsagePermissions()) << std::endl;
std::cout << System::Convert::ToString(fontInfo->get_EmbeddingLicensingRights()->get_BitmapEmbeddingOnly()) << std::endl;
std::cout << System::Convert::ToString(fontInfo->get_EmbeddingLicensingRights()->get_NoSubsetting()) << std::endl;
}
}
See Also
- Class FontEmbeddingLicensingRights
- Class PhysicalFontInfo
- Namespace Aspose::Words::Fonts
- Library Aspose.Words for C++