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

Default font rendering error on Windows Java 8 with 3.5.0 #562

Open
4ra1n opened this issue Jul 18, 2024 · 12 comments
Open

Default font rendering error on Windows Java 8 with 3.5.0 #562

4ra1n opened this issue Jul 18, 2024 · 12 comments

Comments

@4ra1n
Copy link

4ra1n commented Jul 18, 2024

On windows Java 8, something is bad

screenshot

image

Through your article, I have roughly learned that this feature is not proficient in JAVA 8.

Is there a way to disable this feature so that I can use it normally in JAVA 8 with latest version

@4ra1n 4ra1n added the bug label Jul 18, 2024
@4ra1n 4ra1n changed the title Is there a way to disable Ligature in 3.5.0 Default font rendering error on Windows Java 8 with 3.5.0 Jul 18, 2024
@4ra1n
Copy link
Author

4ra1n commented Jul 18, 2024

it is ok in JAVA 11/17 only wrong in JAVA 8

@4ra1n
Copy link
Author

4ra1n commented Jul 19, 2024

it is ok in JAVA 8u HIGH version such as 8u391 but wrong in JAVA 8u LOW version such as 8u20

@bobbylight
Copy link
Owner

Are you using ligatures and/or kerning? Can you provide the input file you’re rendering so I have a test case?

@4ra1n
Copy link
Author

4ra1n commented Jul 19, 2024

@bobbylight

I just new RSyntaxTextArea without other setting

 RSyntaxTextArea rArea = new RSyntaxTextArea(300, 300);

The input is

//
// Jar Analyzer V2 by 4ra1n
// (powered by FernFlower decompiler)
//
package org.example.httpdemo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

The screenshot on Java 8u131

image

The screenshot on Java 8u391

image

Thanks

@bobbylight
Copy link
Owner

And this rendering error was fine in 3.4.2?

@4ra1n
Copy link
Author

4ra1n commented Jul 19, 2024

@bobbylight

YES it is fine on 3.4.1 with Java 8u131

image

btw, i use the flatlaf. Is there a connection?

@bobbylight
Copy link
Owner

It’s doubtful that’s related. But I won’t be able to look k to this until tomorrow most likely. Are you locked into older Windows 8 JREs and unable to update? One thing I was looking at for the next major version was updating our baseline requirement to Java 11.

Also - thanks for digging in so much in your report! Very helpful

@4ra1n
Copy link
Author

4ra1n commented Jul 19, 2024

@bobbylight

thanks

Due to the fact that Java8 is still LTS at present, and upgrading Java8 to Java11 is destructive, I may not plan to upgrade.
I hope you can provide support for Java8 in future versions.

In fact, this issue does not exist in the latest version of Java 8 and only affects older versions. The priority for fixing it is not high. The issue here only indicates the existence of the problem and does not necessarily need to be fixed

@bobbylight
Copy link
Owner

Aye, my first thought is to look through JRE release notes for font rendering changes/fixes, but if something changes on my end I may be able to address it

@bobbylight
Copy link
Owner

I can't reproduce this with java 8u20 on Windows. Can you provide an SSCCE that demonstrates this behavior?

Here's what I see with 8u20:

image

@4ra1n
Copy link
Author

4ra1n commented Jul 22, 2024

You can download my project: https://github.com/jar-analyzer/jar-analyzer/releases/download/2.20/jar-analyzer-2.20-windows-system.zip

And run it

"C:\Program Files\Java\jdk1.8.0_20\bin\java.exe" -jar lib\jar-analyzer-2.20.jar gui

Open a small jar and press start engine button

Then chose a class in left file tree to decompile

screenshot

image

If I copy the code to a txt

image

@bobbylight
Copy link
Owner

4ra1n sorry for the late reply. Can you provide a smaller example - an SSCCE usually has no dependencies to make it easier to debug and identify the cause.

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

No branches or pull requests

2 participants