Package de.intarsys.cwt.font.afm
Class AFMChar
java.lang.Object
de.intarsys.cwt.font.afm.AFMChar
A simple implementation for an AFM char metric 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"
-
Field Details
-
AFM_TOKEN_WX
-
AFM_TOKEN_W
-
AFM_TOKEN_W0X
-
AFM_TOKEN_W0
-
AFM_TOKEN_N
-
AFM_TOKEN_CH
-
AFM_TOKEN_C
-
-
Constructor Details
-
AFMChar
AFMChar constructor comment.- Parameters:
code
- docmewidth
- docmename
- docme
-
-
Method Details
-
create
Create a new glyph representation from the definition parsed fromglyph
.- Parameters:
glyph
- A string containing a definition for the glyph.- Returns:
- The new glyph representation.
-
getCode
public int getCode()The glyphs code.- Returns:
- The glyphs code.
-
getName
The glyphs name.- Returns:
- The glyphs name.
-
getWidth
public int getWidth()The glyphs width.- Returns:
- The glyphs width.
-
toString
-