public class EmbedFontInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
embedFile
filename of the main font file
|
protected EncodingMode |
encodingMode
the requested encoding mode for the font
|
protected Set |
familyNames |
protected boolean |
kerning
false, to disable kerning
|
protected String |
metricsFile
filename of the metrics file
|
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(String metricsFile,
boolean kerning,
List fontTriplets,
String embedFile,
String subFontName)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmbedFile()
Returns the path to the embeddable font file
|
EncodingMode |
getEncodingMode()
Returns the requested encoding mode for this font.
|
Set |
getFamilyNames() |
List |
getFontTriplets()
Returns the list of font triplets associated with this font.
|
boolean |
getKerning()
Determines if kerning is enabled
|
String |
getMetricsFile()
Returns the path to the metrics file
|
Panose |
getPanose() |
String |
getPostScriptName()
Returns the PostScript name of the font.
|
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 |
setEncodingMode(EncodingMode mode)
Sets the requested encoding mode for this font.
|
void |
setFamilyNames(Set familyNames) |
void |
setPanose(Panose panose) |
void |
setPostScriptName(String postScriptName)
Sets the PostScript name of the font
|
String |
toString() |
protected Set familyNames
protected String metricsFile
protected String embedFile
protected boolean kerning
protected EncodingMode encodingMode
protected String postScriptName
protected String subFontName
protected Panose panose
public EmbedFontInfo(String metricsFile, boolean kerning, List fontTriplets, String embedFile, String subFontName)
metricsFile - Path to the xml file containing font metricskerning - True if kerning should be enabledfontTriplets - List of font triplets to associate with this fontembedFile - Path to the embeddable font file (may be null)subFontName - 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 String getMetricsFile()
public String getEmbedFile()
public boolean getKerning()
public String getSubFontName()
public String getPostScriptName()
public void setPostScriptName(String postScriptName)
postScriptName - the PostScript namepublic List getFontTriplets()
public boolean isEmbedded()
public void setEmbedded(boolean value)
value - true to embed the font, false to reference itpublic EncodingMode getEncodingMode()
public void setEncodingMode(EncodingMode mode)
mode - the new encoding modepublic Set getFamilyNames()
public void setFamilyNames(Set familyNames)
Copyright © 2007-2020. All Rights Reserved.