intarsys CWT library

de.intarsys.cwt.font.afm
Class AFMChar

java.lang.Object
  extended by de.intarsys.cwt.font.afm.AFMChar

public class AFMChar
extends Object

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 Summary
static String AFM_TOKEN_C
           
static String AFM_TOKEN_CH
           
static String AFM_TOKEN_N
           
static String AFM_TOKEN_W
           
static String AFM_TOKEN_W0
           
static String AFM_TOKEN_W0X
           
static String AFM_TOKEN_WX
           
 
Method Summary
static AFMChar create(String glyph)
          Create a new glyph representation from the definition parsed from glyph.
 int getCode()
          The glyphs code.
 String getName()
          The glyphs name.
 int getWidth()
          The glyphs width.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AFM_TOKEN_WX

public static String AFM_TOKEN_WX

AFM_TOKEN_W

public static String AFM_TOKEN_W

AFM_TOKEN_W0X

public static String AFM_TOKEN_W0X

AFM_TOKEN_W0

public static String AFM_TOKEN_W0

AFM_TOKEN_N

public static String AFM_TOKEN_N

AFM_TOKEN_CH

public static String AFM_TOKEN_CH

AFM_TOKEN_C

public static String AFM_TOKEN_C
Method Detail

create

public static AFMChar create(String glyph)
Create a new glyph representation from the definition parsed from glyph.

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

public String getName()
The glyphs name.

Returns:
The glyphs name.

getWidth

public int getWidth()
The glyphs width.

Returns:
The glyphs width.

toString

public String toString()
Overrides:
toString in class Object

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.