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

Java 21 breaks the terminal font #46

Open
aneshodza opened this issue Mar 26, 2024 · 1 comment
Open

Java 21 breaks the terminal font #46

aneshodza opened this issue Mar 26, 2024 · 1 comment

Comments

@aneshodza
Copy link

Hey!
I am using the textio library in one of my projects, where I create a terminal using this code:

private final TextIO textIO;
private final TextTerminal<?> terminal;
//...
this.textIO = TextIoFactory.getTextIO();
this.terminal = textIO.getTextTerminal();

But since upgrading to Java 21 the terminal has a new font and isn't monofont.
Is this a known bug, or is my configuration lacking?

Note: It worked perfectly fine in java 18 and this only happens on Windows.

How it looks now

image

How it looked before

image
@tiaggofg
Copy link

Hello, @aneshodza!

Put the following line in your textio.properties file

textio.prompt.font.family=Monospaced

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

2 participants