public class AFMChar
extends java.lang.Object
This implementation will hold the information needed for implementing a simple pdf field layout mechanism. All attributes but name, code, and with are ignored.
See the "Adobe Font Metrics File Format Specification"
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AFM_TOKEN_C |
static java.lang.String |
AFM_TOKEN_CH |
static java.lang.String |
AFM_TOKEN_N |
static java.lang.String |
AFM_TOKEN_W |
static java.lang.String |
AFM_TOKEN_W0 |
static java.lang.String |
AFM_TOKEN_W0X |
static java.lang.String |
AFM_TOKEN_WX |
Modifier | Constructor and Description |
---|---|
protected |
AFMChar(int code,
int width,
java.lang.String name)
AFMChar constructor comment.
|
Modifier and Type | Method and Description |
---|---|
static AFMChar |
create(java.lang.String glyph)
Create a new glyph representation from the definition parsed from
glyph . |
int |
getCode()
The glyphs code.
|
java.lang.String |
getName()
The glyphs name.
|
int |
getWidth()
The glyphs width.
|
java.lang.String |
toString() |
public static java.lang.String AFM_TOKEN_WX
public static java.lang.String AFM_TOKEN_W
public static java.lang.String AFM_TOKEN_W0X
public static java.lang.String AFM_TOKEN_W0
public static java.lang.String AFM_TOKEN_N
public static java.lang.String AFM_TOKEN_CH
public static java.lang.String AFM_TOKEN_C
protected AFMChar(int code, int width, java.lang.String name)
code
- docmewidth
- docmename
- docmepublic static AFMChar create(java.lang.String glyph)
glyph
.glyph
- A string containing a definition for the glyph.public int getCode()
public java.lang.String getName()
public int getWidth()
public java.lang.String toString()
toString
in class java.lang.Object