Aspose::Words::Fonts::FontEmbeddingLicensingRights class
Contents
[
Hide
]FontEmbeddingLicensingRights class
Represents embedding licensing rights for the font.
class FontEmbeddingLicensingRights : public System::Object
Methods
| Method | Description | 
|---|---|
| get_BitmapEmbeddingOnly() const | Indicates the “Bitmap embedding only” restriction. | 
| get_EmbeddingUsagePermissions() const | Usage permissions. | 
| get_NoSubsetting() const | Indicates the “No subsetting” restriction. | 
| GetType() const override | |
| Is(const System::TypeInfo&) const override | |
| static Type() | 
Examples
Shows how to get license rights information for embedded fonts (FontInfo).
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Embedded font rights.docx");
// Get the list of document fonts.
System::SharedPtr<Aspose::Words::Fonts::FontInfoCollection> fontInfos = doc->get_FontInfos();
for (auto&& fontInfo : 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
- Namespace Aspose::Words::Fonts
 - Library Aspose.Words for C++