public class FontMetrics extends Object
Constructor and Description |
---|
FontMetrics()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public float getCharacterWidth(String name)
name
- The character to get the width for.public float getCharacterHeight(String name)
name
- The character to get the width for.public float getAverageCharacterWidth()
public void addComment(String comment)
comment
- The comment to add to this metric.public List<String> getComments()
public float getAFMVersion()
public int getMetricSets()
public void setAFMVersion(float afmVersionValue)
afmVersionValue
- The version of the document.public void setMetricSets(int metricSetsValue)
metricSetsValue
- The new metric sets attribute.IllegalArgumentException
- If the metricSets attribute is not 0,1, or 2.public String getFontName()
public void setFontName(String name)
name
- New value of property fontName.public String getFullName()
public void setFullName(String fullNameValue)
fullNameValue
- New value of property fullName.public String getFamilyName()
public void setFamilyName(String familyNameValue)
familyNameValue
- New value of property familyName.public String getWeight()
public void setWeight(String weightValue)
weightValue
- New value of property weight.public BoundingBox getFontBBox()
public void setFontBBox(BoundingBox bBox)
bBox
- New value of property fontBBox.public String getNotice()
public void setNotice(String noticeValue)
noticeValue
- New value of property notice.public String getEncodingScheme()
public void setEncodingScheme(String encodingSchemeValue)
encodingSchemeValue
- New value of property encodingScheme.public int getMappingScheme()
public void setMappingScheme(int mappingSchemeValue)
mappingSchemeValue
- New value of property mappingScheme.public int getEscChar()
public void setEscChar(int escCharValue)
escCharValue
- New value of property escChar.public String getCharacterSet()
public void setCharacterSet(String characterSetValue)
characterSetValue
- New value of property characterSet.public int getCharacters()
public void setCharacters(int charactersValue)
charactersValue
- New value of property characters.public boolean isBaseFont()
public void setIsBaseFont(boolean isBaseFontValue)
isBaseFontValue
- New value of property isBaseFont.public float[] getVVector()
public void setVVector(float[] vVectorValue)
vVectorValue
- New value of property vVector.public boolean isFixedV()
public void setIsFixedV(boolean isFixedVValue)
isFixedVValue
- New value of property isFixedV.public float getCapHeight()
public void setCapHeight(float capHeightValue)
capHeightValue
- New value of property capHeight.public float getXHeight()
public void setXHeight(float xHeightValue)
xHeightValue
- New value of property xHeight.public float getAscender()
public void setAscender(float ascenderValue)
ascenderValue
- New value of property ascender.public float getDescender()
public void setDescender(float descenderValue)
descenderValue
- New value of property descender.public String getFontVersion()
public void setFontVersion(String fontVersionValue)
fontVersionValue
- New value of property fontVersion.public float getUnderlinePosition()
public void setUnderlinePosition(float underlinePositionValue)
underlinePositionValue
- New value of property underlinePosition.public float getUnderlineThickness()
public void setUnderlineThickness(float underlineThicknessValue)
underlineThicknessValue
- New value of property underlineThickness.public float getItalicAngle()
public void setItalicAngle(float italicAngleValue)
italicAngleValue
- New value of property italicAngle.public float[] getCharWidth()
public void setCharWidth(float[] charWidthValue)
charWidthValue
- New value of property charWidth.public boolean isFixedPitch()
public void setFixedPitch(boolean isFixedPitchValue)
isFixedPitchValue
- New value of property isFixedPitch.public List<CharMetric> getCharMetrics()
public void setCharMetrics(List<CharMetric> charMetricsValue)
charMetricsValue
- New value of property charMetrics.public void addCharMetric(CharMetric metric)
metric
- The character metric to add.public List<TrackKern> getTrackKern()
public void setTrackKern(List<TrackKern> trackKernValue)
trackKernValue
- New value of property trackKern.public void addTrackKern(TrackKern kern)
kern
- The track kerning data.public List<Composite> getComposites()
public void setComposites(List<Composite> compositesList)
compositesList
- New value of property composites.public void addComposite(Composite composite)
composite
- The composite info to add.public List<KernPair> getKernPairs()
public void addKernPair(KernPair kernPair)
kernPair
- The kern pair to add.public void setKernPairs(List<KernPair> kernPairsList)
kernPairsList
- New value of property kernPairs.public List<KernPair> getKernPairs0()
public void addKernPair0(KernPair kernPair)
kernPair
- The kern pair to add.public void setKernPairs0(List<KernPair> kernPairs0List)
kernPairs0List
- New value of property kernPairs0.public List<KernPair> getKernPairs1()
public void addKernPair1(KernPair kernPair)
kernPair
- The kern pair to add.public void setKernPairs1(List<KernPair> kernPairs1List)
kernPairs1List
- New value of property kernPairs1.public float getStandardHorizontalWidth()
public void setStandardHorizontalWidth(float standardHorizontalWidthValue)
standardHorizontalWidthValue
- New value of property standardHorizontalWidth.public float getStandardVerticalWidth()
public void setStandardVerticalWidth(float standardVerticalWidthValue)
standardVerticalWidthValue
- New value of property standardVerticalWidth.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.