|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.intarsys.cwt.font.afm.AFM
public class AFM
A simple implementation for an adobe font metric object.
This implementation will hold all afm attributes in a generic collection. The char metrics are read explicitly and held in a list of AFMChar's. No other information (like kerning) is extracted.
See the "Adobe Font Metrics File Format Specification"
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_FontName
|
| Constructor Summary | |
|---|---|
protected |
AFM()
|
| Method Summary | |
|---|---|
protected void |
addChar(AFMChar c)
|
static AFM |
createFromLocator(de.intarsys.tools.locator.ILocator locator)
|
static AFM |
createNew()
|
java.lang.String |
getAttribute(java.lang.String name)
The string value for a generic attribute designated by name. |
AFMChar |
getCharByCode(int codePoint)
The character representation for a byte code point given in codePoint. |
AFMChar |
getCharByName(java.lang.String name)
The character representation for an adobe glyph name given in name. |
java.lang.String |
getFontName()
|
de.intarsys.tools.locator.ILocator |
getLocator()
|
protected void |
initializeFromLocator()
|
protected void |
setAttribute(java.lang.String name,
java.lang.String value)
|
protected void |
setLocator(de.intarsys.tools.locator.ILocator locator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTR_FontName
| Constructor Detail |
|---|
protected AFM()
| Method Detail |
|---|
public static AFM createFromLocator(de.intarsys.tools.locator.ILocator locator)
throws java.io.IOException
java.io.IOExceptionpublic static AFM createNew()
protected void addChar(AFMChar c)
public java.lang.String getAttribute(java.lang.String name)
name.
name - The name of the attribute to lookup.
name.public AFMChar getCharByCode(int codePoint)
codePoint.
codePoint - The byte code point.
codePoint.public AFMChar getCharByName(java.lang.String name)
name.
name - The adobe glyph name.
name.public java.lang.String getFontName()
public de.intarsys.tools.locator.ILocator getLocator()
protected void initializeFromLocator()
throws java.io.IOException
java.io.IOException
protected void setAttribute(java.lang.String name,
java.lang.String value)
protected void setLocator(de.intarsys.tools.locator.ILocator locator)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||