Package de.intarsys.cwt.font.afm
Class AFM
java.lang.Object
de.intarsys.cwt.font.afm.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic AFMcreateFromLocator(de.intarsys.tools.locator.ILocator locator) static AFMgetAttribute(String name) The string value for a generic attribute designated byname.getCharByCode(int codePoint) The character representation for a byte code point given incodePoint.getCharByName(String name) The character representation for an adobe glyph name given inname.de.intarsys.tools.locator.ILocatorprotected voidprotected voidsetAttribute(String name, String value) protected voidsetLocator(de.intarsys.tools.locator.ILocator locator)
-
Field Details
-
ATTR_FontName
- See Also:
-
-
Constructor Details
-
AFM
protected AFM()
-
-
Method Details
-
createFromLocator
- Throws:
IOException
-
createNew
-
addChar
-
getAttribute
The string value for a generic attribute designated byname.- Parameters:
name- The name of the attribute to lookup.- Returns:
- The string value for a generic attribute designated by
name.
-
getCharByCode
The character representation for a byte code point given incodePoint.- Parameters:
codePoint- The byte code point.- Returns:
- The character representation for a byte code point given in
codePoint.
-
getCharByName
The character representation for an adobe glyph name given inname.- Parameters:
name- The adobe glyph name.- Returns:
- The character representation for an adobe glyph name given in
name.
-
getFontName
-
getLocator
public de.intarsys.tools.locator.ILocator getLocator() -
initializeFromLocator
- Throws:
IOException
-
setAttribute
-
setLocator
protected void setLocator(de.intarsys.tools.locator.ILocator locator)
-