|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gnu.jfiglet.core.FIGFont
A FIGfont, which file format is specified by this document.
Field Summary | |
static int |
MAX_8BIT_CHARSET_CHAR_CODE
The maximum valid code for a character of the FIGFont 8-bit characterset |
Constructor Summary | |
FIGFont(java.lang.String theName)
Create an empty FIGFont whith a provided name. |
Method Summary | |
FIGCharacter |
getFIGCharacter(int theCharacterCode)
Get one of the FIGFont FIGCharacters. |
FIGFontInfo |
getInfo()
Get informations about the FIGFont. |
void |
loadFromFile()
Load the content of the FIGFont from the fontname.flf file provided in the fonts directory in the classpath. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_8BIT_CHARSET_CHAR_CODE
Constructor Detail |
public FIGFont(java.lang.String theName)
theName
- the name of the fontMethod Detail |
public void loadFromFile() throws java.io.IOException, java.util.zip.ZipException, IllegalFIGFontFileException
java.io.IOException
- if such an exception occured while accessing the
fontname.flf file.
java.util.zip.ZipException
- if the fontname.flf file is a zip file
and such an exception occurs reading its content.
IllegalFIGFontFileException
- if the fontname.flf file
provided in the classpath is not a valid FIGFont file or if there is
no fontname.flf file provided in the fonts directory in the
classpath.public FIGCharacter getFIGCharacter(int theCharacterCode)
theCharacterCode
- the code of the FIGCharacter in
the FIGFont characterset. An IllegalArgumentException is thrown if
this code is lower than 0 or greater than MAX_8BIT_CHARSET_CHAR_CODE
public FIGFontInfo getInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |