Aspose::Words::Fonts::FontEmbeddingLicensingRights::get_BitmapEmbeddingOnly method
Contents
[
Hide
]FontEmbeddingLicensingRights::get_BitmapEmbeddingOnly method
Indicates the “Bitmap embedding only” restriction.
_Bool Aspose::Words::Fonts::FontEmbeddingLicensingRights::get_BitmapEmbeddingOnly() const
Remarks
When this bit is set, only bitmaps contained in the font may be embedded. No outline data may be embedded. If there are no bitmaps available in the font, then the font is considered unembeddable and the embedding services will fail. Other embedding restrictions also apply.
Examples
Shows how to get license rights information for embedded fonts (FontInfo).
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(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)
{
Aspose::Words::Fonts::FontEmbeddingUsagePermissions usagePermissions = fontInfo->get_EmbeddingLicensingRights()->get_EmbeddingUsagePermissions();
std::cout << System::EnumGetName(usagePermissions) << 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
- Namespace Aspose::Words::Fonts
- Library Aspose.Words for C++