Aspose::Words::Fonts::FontEmbeddingLicensingRights класс

FontEmbeddingLicensingRights class

Представляет права лицензии на встраивание шрифта.

class FontEmbeddingLicensingRights : public System::Object

Методы

МетодОписание
get_BitmapEmbeddingOnly() constУказывает ограничение «Только встраивание растрового изображения».
get_EmbeddingUsagePermissions() constРазрешения на использование.
get_NoSubsetting() constУказывает ограничение «Без подмножества».
GetType() const override
Is(const System::TypeInfo&) const override
static Type()

Примеры

Показывает, как получить информацию о правах лицензии для встроенных шрифтов (FontInfo).

auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Embedded font rights.docx");

// Получить список шрифтов документа.
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;
    }
}

См. также