Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException some flf fonts #30

Open
Kieaer opened this issue Jul 4, 2024 · 1 comment
Open

ArrayIndexOutOfBoundsException some flf fonts #30

Kieaer opened this issue Jul 4, 2024 · 1 comment

Comments

@Kieaer
Copy link

Kieaer commented Jul 4, 2024

C:\Users\cloud\IdeaProjects\Essentials\Essential\src\main\resources\font>java -jar jfiglet.jar -f hanglg16.flf "text to
convert"
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 8481 out of bounds for length 1024
        at com.github.lalyos.jfiglet.FigletFont.<init>(FigletFont.java:153)
        at com.github.lalyos.jfiglet.FigletFont.convertOneLine(FigletFont.java:195)
        at com.github.lalyos.jfiglet.FigletFont.convertOneLine(FigletFont.java:215)
        at com.github.lalyos.jfiglet.JFiglet.main(JFiglet.java:39)

flf font link: https://github.com/cmatsuoka/figlet-fonts/tree/master/cjkfonts
all flf fonts

@Kieaer
Copy link
Author

Kieaer commented Jul 4, 2024

I changed MAX_CHARS to 80000
but next error

English is ok, but korean/chinese/japanese is not working

Exception in thread "main" java.lang.NullPointerException: Cannot load from object array because "char2" is null
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.Smushing.addChar(Smushing.java:79)
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.Smushing.convert(Smushing.java:59)
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.FigletFont.convert(FigletFont.java:185)
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.FigletFont.convertOneLine(FigletFont.java:195)
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.FigletFont.convertOneLine(FigletFont.java:215)
	at com.github.lalyos.jfiglet/com.github.lalyos.jfiglet.JFiglet.main(JFiglet.java:39)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant