This is the outermost AFM type. This can be created by the afmparser with a valid
AFM document.
addCharMetric
public void addCharMetric(CharMetric metric)
This will add another character metric.
metric
- The character metric to add.
addComment
public void addComment(String comment)
This will add a new comment.
comment
- The comment to add to this metric.
addComposite
public void addComposite(Composite composite)
This will add a single composite part to the picture.
composite
- The composite info to add.
addKernPair
public void addKernPair(KernPair kernPair)
This will add a kern pair.
kernPair
- The kern pair to add.
addKernPair0
public void addKernPair0(KernPair kernPair)
This will add a kern pair.
kernPair
- The kern pair to add.
addKernPair1
public void addKernPair1(KernPair kernPair)
This will add a kern pair.
kernPair
- The kern pair to add.
addTrackKern
public void addTrackKern(TrackKern kern)
This will add another track kern.
kern
- The track kerning data.
getAFMVersion
public float getAFMVersion()
This will get the version of the AFM document.
- The version of the document.
getAscender
public float getAscender()
Getter for property ascender.
- Value of property ascender.
getAverageCharacterWidth
public float getAverageCharacterWidth()
throws IOException
This will get the average width of a character.
- The width of the character.
getCapHeight
public float getCapHeight()
Getter for property capHeight.
- Value of property capHeight.
getCharMetrics
public List getCharMetrics()
Getter for property charMetrics.
- Value of property charMetrics.
getCharWidth
public float[] getCharWidth()
Getter for property charWidth.
- Value of property charWidth.
getCharacterHeight
public float getCharacterHeight(String name)
throws IOException
This will get the width of a character.
name
- The character to get the width for.
- The width of the character.
getCharacterSet
public String getCharacterSet()
Getter for property characterSet.
- Value of property characterSet.
getCharacterWidth
public float getCharacterWidth(String name)
throws IOException
This will get the width of a character.
name
- The character to get the width for.
- The width of the character.
getCharacters
public int getCharacters()
Getter for property characters.
- Value of property characters.
getComments
public List getComments()
This will get all comments.
- The list of all comments.
getComposites
public List getComposites()
Getter for property composites.
- Value of property composites.
getDescender
public float getDescender()
Getter for property descender.
- Value of property descender.
getEncodingScheme
public String getEncodingScheme()
Getter for property encodingScheme.
- Value of property encodingScheme.
getEscChar
public int getEscChar()
Getter for property escChar.
- Value of property escChar.
getFamilyName
public String getFamilyName()
Getter for property familyName.
- Value of property familyName.
getFontBBox
public BoundingBox getFontBBox()
Getter for property fontBBox.
- Value of property fontBBox.
getFontName
public String getFontName()
Getter for property fontName.
- Value of property fontName.
getFontVersion
public String getFontVersion()
Getter for property fontVersion.
- Value of property fontVersion.
getFullName
public String getFullName()
Getter for property fullName.
- Value of property fullName.
getItalicAngle
public float getItalicAngle()
Getter for property italicAngle.
- Value of property italicAngle.
getKernPairs
public List getKernPairs()
Getter for property kernPairs.
- Value of property kernPairs.
getKernPairs0
public List getKernPairs0()
Getter for property kernPairs0.
- Value of property kernPairs0.
getKernPairs1
public List getKernPairs1()
Getter for property kernPairs1.
- Value of property kernPairs1.
getMappingScheme
public int getMappingScheme()
Getter for property mappingScheme.
- Value of property mappingScheme.
getMetricSets
public int getMetricSets()
This will get the metricSets attribute.
- The value of the metric sets.
getNotice
public String getNotice()
Getter for property notice.
- Value of property notice.
getStandardHorizontalWidth
public float getStandardHorizontalWidth()
Getter for property standardHorizontalWidth.
- Value of property standardHorizontalWidth.
getStandardVerticalWidth
public float getStandardVerticalWidth()
Getter for property standardVerticalWidth.
- Value of property standardVerticalWidth.
getTrackKern
public List getTrackKern()
Getter for property trackKern.
- Value of property trackKern.
getUnderlinePosition
public float getUnderlinePosition()
Getter for property underlinePosition.
- Value of property underlinePosition.
getUnderlineThickness
public float getUnderlineThickness()
Getter for property underlineThickness.
- Value of property underlineThickness.
getVVector
public float[] getVVector()
Getter for property vVector.
- Value of property vVector.
getWeight
public String getWeight()
Getter for property weight.
- Value of property weight.
getXHeight
public float getXHeight()
Getter for property xHeight.
- Value of property xHeight.
isBaseFont
public boolean isBaseFont()
Getter for property isBaseFont.
- Value of property isBaseFont.
isFixedPitch
public boolean isFixedPitch()
Getter for property isFixedPitch.
- Value of property isFixedPitch.
isFixedV
public boolean isFixedV()
Getter for property isFixedV.
- Value of property isFixedV.
setAFMVersion
public void setAFMVersion(float afmVersionValue)
This will set the version of the AFM document.
afmVersionValue
- The version of the document.
setAscender
public void setAscender(float ascenderValue)
Setter for property ascender.
ascenderValue
- New value of property ascender.
setCapHeight
public void setCapHeight(float capHeightValue)
Setter for property capHeight.
capHeightValue
- New value of property capHeight.
setCharMetrics
public void setCharMetrics(List charMetricsValue)
Setter for property charMetrics.
charMetricsValue
- New value of property charMetrics.
setCharWidth
public void setCharWidth(float[] charWidthValue)
Setter for property charWidth.
charWidthValue
- New value of property charWidth.
setCharacterSet
public void setCharacterSet(String characterSetValue)
Setter for property characterSet.
characterSetValue
- New value of property characterSet.
setCharacters
public void setCharacters(int charactersValue)
Setter for property characters.
charactersValue
- New value of property characters.
setComposites
public void setComposites(List compositesList)
Setter for property composites.
compositesList
- New value of property composites.
setDescender
public void setDescender(float descenderValue)
Setter for property descender.
descenderValue
- New value of property descender.
setEncodingScheme
public void setEncodingScheme(String encodingSchemeValue)
Setter for property encodingScheme.
encodingSchemeValue
- New value of property encodingScheme.
setEscChar
public void setEscChar(int escCharValue)
Setter for property escChar.
escCharValue
- New value of property escChar.
setFamilyName
public void setFamilyName(String familyNameValue)
Setter for property familyName.
familyNameValue
- New value of property familyName.
setFixedPitch
public void setFixedPitch(boolean isFixedPitchValue)
Setter for property isFixedPitch.
isFixedPitchValue
- New value of property isFixedPitch.
setFontBBox
public void setFontBBox(BoundingBox bBox)
Setter for property fontBBox.
bBox
- New value of property fontBBox.
setFontName
public void setFontName(String name)
Setter for property fontName.
name
- New value of property fontName.
setFontVersion
public void setFontVersion(String fontVersionValue)
Setter for property fontVersion.
fontVersionValue
- New value of property fontVersion.
setFullName
public void setFullName(String fullNameValue)
Setter for property fullName.
fullNameValue
- New value of property fullName.
setIsBaseFont
public void setIsBaseFont(boolean isBaseFontValue)
Setter for property isBaseFont.
isBaseFontValue
- New value of property isBaseFont.
setIsFixedV
public void setIsFixedV(boolean isFixedVValue)
Setter for property isFixedV.
isFixedVValue
- New value of property isFixedV.
setItalicAngle
public void setItalicAngle(float italicAngleValue)
Setter for property italicAngle.
italicAngleValue
- New value of property italicAngle.
setKernPairs
public void setKernPairs(List kernPairsList)
Setter for property kernPairs.
kernPairsList
- New value of property kernPairs.
setKernPairs0
public void setKernPairs0(List kernPairs0List)
Setter for property kernPairs0.
kernPairs0List
- New value of property kernPairs0.
setKernPairs1
public void setKernPairs1(List kernPairs1List)
Setter for property kernPairs1.
kernPairs1List
- New value of property kernPairs1.
setMappingScheme
public void setMappingScheme(int mappingSchemeValue)
Setter for property mappingScheme.
mappingSchemeValue
- New value of property mappingScheme.
setMetricSets
public void setMetricSets(int metricSetsValue)
This will set the metricSets attribute. This value must be 0,1, or 2.
metricSetsValue
- The new metric sets attribute.
setNotice
public void setNotice(String noticeValue)
Setter for property notice.
noticeValue
- New value of property notice.
setStandardHorizontalWidth
public void setStandardHorizontalWidth(float standardHorizontalWidthValue)
Setter for property standardHorizontalWidth.
standardHorizontalWidthValue
- New value of property standardHorizontalWidth.
setStandardVerticalWidth
public void setStandardVerticalWidth(float standardVerticalWidthValue)
Setter for property standardVerticalWidth.
standardVerticalWidthValue
- New value of property standardVerticalWidth.
setTrackKern
public void setTrackKern(List trackKernValue)
Setter for property trackKern.
trackKernValue
- New value of property trackKern.
setUnderlinePosition
public void setUnderlinePosition(float underlinePositionValue)
Setter for property underlinePosition.
underlinePositionValue
- New value of property underlinePosition.
setUnderlineThickness
public void setUnderlineThickness(float underlineThicknessValue)
Setter for property underlineThickness.
underlineThicknessValue
- New value of property underlineThickness.
setVVector
public void setVVector(float[] vVectorValue)
Setter for property vVector.
vVectorValue
- New value of property vVector.
setWeight
public void setWeight(String weightValue)
Setter for property weight.
weightValue
- New value of property weight.
setXHeight
public void setXHeight(float xHeightValue)
Setter for property xHeight.
xHeightValue
- New value of property xHeight.