public class EmbedFontInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
advanced
false, to disable advanced typographic features
|
protected Set |
familyNames |
protected boolean |
kerning
false, to disable kerning
|
protected Panose |
panose |
protected String |
postScriptName
the PostScript name of the font
|
protected String |
subFontName
the sub-fontname of the font (used for TrueType Collections, null otherwise)
|
| Constructor and Description |
|---|
EmbedFontInfo(FontUris fontUris,
boolean kerning,
boolean advanced,
List<FontTriplet> fontTriplets,
String subFontName)
Main constructor
|
EmbedFontInfo(FontUris fontUris,
boolean kerning,
boolean advanced,
List<FontTriplet> fontTriplets,
String subFontName,
EncodingMode encodingMode,
EmbeddingMode embeddingMode,
boolean simulateStyle,
boolean embedAsType1)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAdvanced()
Determines if advanced typographic features are enabled
|
boolean |
getEmbedAsType1() |
EmbeddingMode |
getEmbeddingMode()
Returns the embedding mode for this font.
|
URI |
getEmbedURI()
Returns the URI to the embeddable font resource
|
EncodingMode |
getEncodingMode()
Returns the requested encoding mode for this font.
|
Set |
getFamilyNames() |
List<FontTriplet> |
getFontTriplets()
Returns the list of font triplets associated with this font.
|
FontUris |
getFontUris() |
boolean |
getKerning()
Determines if kerning is enabled
|
URI |
getMetricsURI()
Returns the URI of the metrics XML resource
|
Panose |
getPanose() |
String |
getPostScriptName()
Returns the PostScript name of the font.
|
boolean |
getSimulateStyle()
Determines whether the font can simulate a style such as bold or italic.
|
String |
getSubFontName()
Returns the sub-font name of the font.
|
boolean |
isEmbeddable() |
boolean |
isEmbedded()
Indicates whether the font is only referenced rather than embedded.
|
void |
setEmbeddable(boolean isEmbeddable) |
void |
setEmbedded(boolean value)
Defines whether the font is embedded or not.
|
void |
setFamilyNames(Set familyNames) |
void |
setPanose(Panose panose) |
void |
setPostScriptName(String postScriptName)
Sets the PostScript name of the font
|
String |
toString() |
protected final boolean kerning
protected final boolean advanced
protected Set familyNames
protected String postScriptName
protected String subFontName
protected Panose panose
public EmbedFontInfo(FontUris fontUris, boolean kerning, boolean advanced, List<FontTriplet> fontTriplets, String subFontName, EncodingMode encodingMode, EmbeddingMode embeddingMode, boolean simulateStyle, boolean embedAsType1)
fontUris - the URI of the XML resource containing font metricskerning - True if kerning should be enabledadvanced - true if advanced typography features should be enabledfontTriplets - List of font triplets to associate with this fontsubFontName - the sub-fontname used for TrueType Collections (null otherwise)encodingMode - the encoding mode to use for this fontpublic EmbedFontInfo(FontUris fontUris, boolean kerning, boolean advanced, List<FontTriplet> fontTriplets, String subFontName)
fontUris - the URI of the XML resource containing font metricskerning - True if kerning should be enabledfontTriplets - List of font triplets to associate with this fontsubFontName - the sub-fontname used for TrueType Collections (null otherwise)public boolean isEmbeddable()
public void setEmbeddable(boolean isEmbeddable)
public Panose getPanose()
public void setPanose(Panose panose)
public URI getMetricsURI()
public URI getEmbedURI()
public boolean getKerning()
public boolean getAdvanced()
public String getSubFontName()
public String getPostScriptName()
public void setPostScriptName(String postScriptName)
postScriptName - the PostScript namepublic List<FontTriplet> getFontTriplets()
public boolean isEmbedded()
public EmbeddingMode getEmbeddingMode()
public void setEmbedded(boolean value)
value - true to embed the font, false to reference itpublic EncodingMode getEncodingMode()
public boolean getSimulateStyle()
public boolean getEmbedAsType1()
public Set getFamilyNames()
public void setFamilyNames(Set familyNames)
public FontUris getFontUris()
Copyright © 2007-2022. All Rights Reserved.