public class AFM extends 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"
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_FontName |
| Modifier and Type | Method and Description |
|---|---|
static AFM |
createFromLocator(de.intarsys.tools.locator.ILocator locator) |
static AFM |
createNew() |
String |
getAttribute(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(String name)
The character representation for an adobe glyph name given in
name. |
String |
getFontName() |
de.intarsys.tools.locator.ILocator |
getLocator() |
public static final String ATTR_FontName
public static AFM createFromLocator(de.intarsys.tools.locator.ILocator locator) throws IOException
IOExceptionpublic static AFM createNew()
public String getAttribute(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(String name)
name.name - The adobe glyph name.name.public String getFontName()
public de.intarsys.tools.locator.ILocator getLocator()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.