public class AFMCharMetrics extends Object
Constructor and Description |
---|
AFMCharMetrics() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBBox()
Returns the character's bounding box.
|
NamedCharacter |
getCharacter()
Returns the named character represented by this instance.
|
int |
getCharCode()
Returns the character code.
|
String |
getCharName()
Returns the PostScript character name.
|
String |
getUnicodeSequence()
Returns the Unicode sequence for this character.
|
double |
getWidthX()
Returns the progression dimension in x-direction.
|
double |
getWidthY()
Returns the progression dimension in y-direction.
|
boolean |
hasCharCode()
Indicates whether the character has a character code, i.e.
|
void |
setBBox(Rectangle box)
Sets the character's bounding box.
|
void |
setCharacter(NamedCharacter ch)
Sets the named character represented by this instance.
|
void |
setCharacter(String charName,
String unicodeSequence)
Sets the named character represented by this instance.
|
void |
setCharCode(int charCode)
Sets the character code.
|
void |
setWidthX(double widthX)
Sets the progression dimension in x-direction
|
void |
setWidthY(double widthY)
Sets the progression dimension in y-direction
|
String |
toString() |
public int getCharCode()
public boolean hasCharCode()
public void setCharCode(int charCode)
charCode
- the charCode to setpublic NamedCharacter getCharacter()
public void setCharacter(NamedCharacter ch)
ch
- the named characterpublic void setCharacter(String charName, String unicodeSequence)
charName
- the character name (as defined in the Adobe glyph list)unicodeSequence
- the Unicode sequencepublic String getUnicodeSequence()
public String getCharName()
public double getWidthX()
public void setWidthX(double widthX)
widthX
- the widthX to setpublic double getWidthY()
public void setWidthY(double widthY)
widthY
- the widthY to setpublic Rectangle getBBox()
public void setBBox(Rectangle box)
box
- the bounding boxCopyright © 2025 Apache Software Foundation. All rights reserved.