com.aspose.words
Class FontEmbeddingLicensingRights

java.lang.Object
    extended by com.aspose.words.FontEmbeddingLicensingRights

public class FontEmbeddingLicensingRights 
extends java.lang.Object

Represents embedding licensing rights for the font. To learn more, visit the OpenType specification section on Microsoft Typography portal.

Property Getters/Setters Summary
booleangetBitmapEmbeddingOnly()
           Indicates the "Bitmap embedding only" restriction.
intgetEmbeddingUsagePermissions()
           Usage permissions. The value of the property is FontEmbeddingUsagePermissions integer constant.
booleangetNoSubsetting()
           Indicates the "No subsetting" restriction.
 

Property Getters/Setters Detail

getBitmapEmbeddingOnly

public boolean getBitmapEmbeddingOnly()
Indicates the "Bitmap embedding only" restriction. 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.

Example:

Shows how to get license rights information for embedded fonts (FontInfo).
Document doc = new Document(getMyDir() + "Embedded font rights.docx");

// Get the list of document fonts.
FontInfoCollection fontInfos = doc.getFontInfos();
for (FontInfo fontInfo : fontInfos)
{
    if (fontInfo.getEmbeddingLicensingRights() != null)
    {
        System.out.println(fontInfo.getEmbeddingLicensingRights().getEmbeddingUsagePermissions());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getBitmapEmbeddingOnly());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getNoSubsetting());
    }
}

getEmbeddingUsagePermissions

public int getEmbeddingUsagePermissions()
Usage permissions. The value of the property is FontEmbeddingUsagePermissions integer constant.

Example:

Shows how to get license rights information for embedded fonts (FontInfo).
Document doc = new Document(getMyDir() + "Embedded font rights.docx");

// Get the list of document fonts.
FontInfoCollection fontInfos = doc.getFontInfos();
for (FontInfo fontInfo : fontInfos)
{
    if (fontInfo.getEmbeddingLicensingRights() != null)
    {
        System.out.println(fontInfo.getEmbeddingLicensingRights().getEmbeddingUsagePermissions());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getBitmapEmbeddingOnly());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getNoSubsetting());
    }
}

getNoSubsetting

public boolean getNoSubsetting()
Indicates the "No subsetting" restriction. When this flag is set, the font must not be subsetted prior to embedding. Other embedding restrictions also apply.

Example:

Shows how to get license rights information for embedded fonts (FontInfo).
Document doc = new Document(getMyDir() + "Embedded font rights.docx");

// Get the list of document fonts.
FontInfoCollection fontInfos = doc.getFontInfos();
for (FontInfo fontInfo : fontInfos)
{
    if (fontInfo.getEmbeddingLicensingRights() != null)
    {
        System.out.println(fontInfo.getEmbeddingLicensingRights().getEmbeddingUsagePermissions());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getBitmapEmbeddingOnly());
        System.out.println(fontInfo.getEmbeddingLicensingRights().getNoSubsetting());
    }
}

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.