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