|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.font.format.FontParser
public class FontParser
Parses a font file.
Field Summary | |
---|---|
static byte |
FILEFORMAT_OTF_CFF
Constant indicating that the file is an OpenType font in CFF (Type 1) format. |
static byte |
FILEFORMAT_OTF_TRUETYPE
Constant indicating that the file is an OpenType font in TrueType format. |
static byte |
FILEFORMAT_TTF_COLLECTION
Constant indicating that the file is a TrueType collection. |
static byte |
FILEFORMAT_TTF_SINGLEFONT
Constant indicating that the file is a TrueType file containing only one TrueType font. |
static byte |
FILEFORMAT_TYPE1_MAC
Constant indicating that the file is a Type 1 file in Macintosh format. |
static byte |
FILEFORMAT_TYPE1_PFA
Constant indicating that the file is a Type 1 file in PFA (hexadecimal) format. |
static byte |
FILEFORMAT_TYPE1_PFB
Constant indicating that the file is a Type 1 file in PFB (Microsoft) format. |
static byte |
FILEFORMAT_UNKNOWN
Consant indicating that the file is in an unknown format. |
Constructor Summary | |
---|---|
FontParser(FontParserClient parserClient,
DataSource dataSource)
Constructor. |
Method Summary | |
---|---|
FontContent |
createFontFile()
Factory method that creates instances of FontFile that know how to read the file's contents. |
byte |
getFileFormat()
Returns the format of this font file. |
org.axsl.font.Font.Format |
getFontFormat()
Returns the format of this font. |
FontParserClient |
getFontParserClient()
Returns the font parser client. |
org.apache.commons.logging.Log |
getLogger()
Returns the logger. |
org.axsl.ps.PsServer |
getPsServer()
Returns the font server. |
RandomAccessInput |
getRandomInput()
Returns the content to be parsed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte FILEFORMAT_UNKNOWN
public static final byte FILEFORMAT_TYPE1_PFA
public static final byte FILEFORMAT_TYPE1_PFB
public static final byte FILEFORMAT_TYPE1_MAC
public static final byte FILEFORMAT_TTF_SINGLEFONT
public static final byte FILEFORMAT_TTF_COLLECTION
public static final byte FILEFORMAT_OTF_TRUETYPE
public static final byte FILEFORMAT_OTF_CFF
Constructor Detail |
---|
public FontParser(FontParserClient parserClient, DataSource dataSource) throws IOException, org.axsl.font.FontException
parserClient
- The font parser client.dataSource
- The description and content to be parsed.
IOException
- For errors opening or reading the input stream.
org.axsl.font.FontException
- For an unsupported font format.Method Detail |
---|
public org.axsl.font.Font.Format getFontFormat()
public byte getFileFormat()
public org.apache.commons.logging.Log getLogger()
public org.axsl.ps.PsServer getPsServer()
public FontParserClient getFontParserClient()
public FontContent createFontFile() throws org.axsl.font.FontException
org.axsl.font.FontException
- For errors reading content.public RandomAccessInput getRandomInput()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |