Skip to content

Commit

Permalink
fix utf-8 fonts
Browse files Browse the repository at this point in the history
Fixes: #11
author: [email protected]
  • Loading branch information
lalyos committed Dec 22, 2016
1 parent f6f893a commit e4109bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/com/github/lalyos/jfiglet/FigletFont.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,20 @@ public String getCharLineString(int c, int l) {
* Creates a FigletFont as specified at: https://github.com/lalyos/jfiglet/blob/master/figfont.txt
*
* @param stream
* @throws java.io.IOException
*/
public FigletFont(InputStream stream) throws IOException {
font = new char[MAX_CHARS][][];
DataInputStream data = null;
BufferedReader data = null;
String dummyS;
char dummyC;
int dummyI;
int charCode;

String codeTag;
try {
data = new DataInputStream(new BufferedInputStream(stream));

data = new BufferedReader(
new InputStreamReader(new BufferedInputStream(stream),"UTF-8"));

dummyS = data.readLine();
StringTokenizer st = new StringTokenizer(dummyS, " ");
Expand Down

0 comments on commit e4109bd

Please sign in to comment.