public class FND_FontDescriptor extends StructuredField
| Modifier and Type | Class and Description |
|---|---|
static class |
FND_FontDescriptor.FontDesignFlag |
static class |
FND_FontDescriptor.FontWeightClass |
static class |
FND_FontDescriptor.FontWidthClass |
| Constructor and Description |
|---|
FND_FontDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
Decodes the given AFP data.
Parameter length specifies the length in bytes of the data to be decoded, beginning with position offset. |
short |
getDesignGeneralClass() |
short |
getDesignSpecificGroup() |
short |
getDesignSubClass() |
int |
getFGID_FontTypefaceGlobalID() |
java.util.EnumSet<FND_FontDescriptor.FontDesignFlag> |
getFontDesignFlags() |
FND_FontDescriptor.FontWeightClass |
getFontWeightClass() |
FND_FontDescriptor.FontWidthClass |
getFontWidthClass() |
int |
getGCSGID_FontGraphicCharacterSetGlobalID() |
short |
getMaxHorizontalSize() |
short |
getMaxVerticalSize() |
short |
getMinHorizontalSize() |
short |
getMinVerticalSize() |
short |
getNominalHorizontalSize() |
short |
getNominalVerticalSize() |
byte[] |
getReserved49_63() |
byte[] |
getReserved66_75() |
java.util.List<Triplet> |
getTriplets() |
java.lang.String |
getTypefaceDescription() |
void |
setDesignGeneralClass(short designGeneralClass) |
void |
setDesignSpecificGroup(short designSpecificGroup) |
void |
setDesignSubClass(short designSubClass) |
void |
setFGID_FontTypefaceGlobalID(int fGID_FontTypefaceGlobalID) |
void |
setFontDesignFlags(java.util.EnumSet<FND_FontDescriptor.FontDesignFlag> fontDesignFlags) |
void |
setFontWeightClass(FND_FontDescriptor.FontWeightClass fontWeightClass) |
void |
setFontWidthClass(FND_FontDescriptor.FontWidthClass fontWidthClass) |
void |
setGCSGID_FontGraphicCharacterSetGlobalID(int gCSGID_FontGraphicCharacterSetGlobalID) |
void |
setMaxHorizontalSize(short maxHorizontalSize) |
void |
setMaxVerticalSize(short maxVerticalSize) |
void |
setMinHorizontalSize(short minHorizontalSize) |
void |
setMinVerticalSize(short minVerticalSize) |
void |
setNominalHorizontalSize(short nominalHorizontalSize) |
void |
setNominalVerticalSize(short nominalVerticalSize) |
void |
setReserved49_63(byte[] reserved49to63) |
void |
setReserved66_75(byte[] reserved66to75) |
void |
setTriplets(java.util.List<Triplet> triplets) |
void |
setTypefaceDescription(java.lang.String typefaceDescription) |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
checkDataLength, getActualLength, getPadding, getStructuredFieldIntroducer, isBeginSF, isEndSF, isShallow, setPadding, setStructuredFieldIntroducer, toString, writeFullStructuredFieldpublic void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteabledecodeAFP in class StructuredFieldsfData - contains the AFP data to decode.offset - the byte index position where the decoding should start.length - the length in bytes of the data to be decoded, beginning with position offset.config - contains parameter used for decoding.AFPParserException - if the given AFP data are invalid.public void writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
throws java.io.IOException
IAFPDecodeableWriteablewriteAFP in interface IAFPDecodeableWriteablewriteAFP in class StructuredFieldos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.public java.lang.String getTypefaceDescription()
public void setTypefaceDescription(java.lang.String typefaceDescription)
public FND_FontDescriptor.FontWeightClass getFontWeightClass()
public void setFontWeightClass(FND_FontDescriptor.FontWeightClass fontWeightClass)
public FND_FontDescriptor.FontWidthClass getFontWidthClass()
public void setFontWidthClass(FND_FontDescriptor.FontWidthClass fontWidthClass)
public short getMaxVerticalSize()
public void setMaxVerticalSize(short maxVerticalSize)
public short getNominalVerticalSize()
public void setNominalVerticalSize(short nominalVerticalSize)
public short getMinVerticalSize()
public void setMinVerticalSize(short minVerticalSize)
public short getMaxHorizontalSize()
public void setMaxHorizontalSize(short maxHorizontalSize)
public short getNominalHorizontalSize()
public void setNominalHorizontalSize(short nominalHorizontalSize)
public short getMinHorizontalSize()
public void setMinHorizontalSize(short minHorizontalSize)
public short getDesignGeneralClass()
public void setDesignGeneralClass(short designGeneralClass)
public short getDesignSubClass()
public void setDesignSubClass(short designSubClass)
public short getDesignSpecificGroup()
public void setDesignSpecificGroup(short designSpecificGroup)
public byte[] getReserved49_63()
public void setReserved49_63(byte[] reserved49to63)
public java.util.EnumSet<FND_FontDescriptor.FontDesignFlag> getFontDesignFlags()
public void setFontDesignFlags(java.util.EnumSet<FND_FontDescriptor.FontDesignFlag> fontDesignFlags)
public byte[] getReserved66_75()
public void setReserved66_75(byte[] reserved66to75)
public int getGCSGID_FontGraphicCharacterSetGlobalID()
public void setGCSGID_FontGraphicCharacterSetGlobalID(int gCSGID_FontGraphicCharacterSetGlobalID)
public int getFGID_FontTypefaceGlobalID()
public void setFGID_FontTypefaceGlobalID(int fGID_FontTypefaceGlobalID)
public java.util.List<Triplet> getTriplets()
public void setTriplets(java.util.List<Triplet> triplets)