FontEmbeddingLicensingRights
Inheritance: java.lang.Object
public class FontEmbeddingLicensingRights
Represents embedding licensing rights for the font.
Remarks:
To learn more, visit the OpenType specification section on Microsoft Typography portal.
Methods
Method | Description |
---|---|
getBitmapEmbeddingOnly() | Indicates the “Bitmap embedding only” restriction. |
getEmbeddingUsagePermissions() | Usage permissions. |
getNoSubsetting() | Indicates the “No subsetting” restriction. |
getBitmapEmbeddingOnly()
public boolean getBitmapEmbeddingOnly()
Indicates the “Bitmap embedding only” restriction.
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).
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());
}
}
Returns: boolean - The corresponding boolean value.
getEmbeddingUsagePermissions()
public int getEmbeddingUsagePermissions()
Usage permissions.
Examples:
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());
}
}
Returns: int - The corresponding int value. The returned value is one of FontEmbeddingUsagePermissions constants.
getNoSubsetting()
public boolean getNoSubsetting()
Indicates the “No subsetting” restriction.
Remarks:
When this flag is set, the font must not be subsetted prior to embedding. Other embedding restrictions also apply.
Examples:
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());
}
}
Returns: boolean - The corresponding boolean value.