public class FigletFont extends Object
String asciiArt = FigletFont.convertOneLine("hello");
Originally found at: http://www.rigaut.com/benoit/CERN/FigletJava/. Moved to
github.com.| Modifier and Type | Field and Description |
|---|---|
char[][][] |
font |
String |
fontName |
char |
hardblank |
int |
height |
int |
heightWithoutDescenders |
static int |
MAX_CHARS |
int |
maxLine |
int |
smushMode |
| Constructor and Description |
|---|
FigletFont(InputStream stream)
Creates a FigletFont as specified at: https://github.com/lalyos/jfiglet/blob/master/figfont.txt
|
| Modifier and Type | Method and Description |
|---|---|
String |
convert(String message) |
static String |
convertOneLine(File fontFile,
String message) |
static String |
convertOneLine(InputStream fontFileStream,
String message) |
static String |
convertOneLine(String message) |
static String |
convertOneLine(String fontPath,
String message) |
char[][] |
getChar(int c)
Return a single character represented as char[][].
|
String |
getCharLineString(int c,
int l)
Selects a single line from a character.
|
char[][][] |
getFont()
Returns all character from this Font.
|
public char hardblank
public int height
public int heightWithoutDescenders
public int maxLine
public int smushMode
public char[][][] font
public String fontName
public static final int MAX_CHARS
public FigletFont(InputStream stream) throws IOException
stream - IOExceptionpublic char[][][] getFont()
public char[][] getChar(int c)
c - The numerical id of the character.public String getCharLineString(int c, int l)
c - Character idl - Line numberpublic String convert(String message) throws IOException
IOExceptionpublic static String convertOneLine(InputStream fontFileStream, String message) throws IOException
IOExceptionpublic static String convertOneLine(String message) throws IOException
IOExceptionpublic static String convertOneLine(File fontFile, String message) throws IOException
IOExceptionpublic static String convertOneLine(String fontPath, String message) throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.