-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Freetype 2.9.1 renders fonts poorly on Windows 10 #1059
Comments
FYI - I think this should be the actual fix
|
@paharvey can you please confirm that setting With the test I've done locally (i.e. running visualvm) it seems to have no effect. And furthermore, for this case reverting back to previous freetype versions / upgrading to the latest version does not change anything at all. Will keep investigating. |
Hmm, ok - my bad. The issues I was seeing were about HiDPI support. |
Hi @paharvey . After discussions in Slack, we found that we are using Freetype Once I have confirmed that using |
Freetype is now at 2.10.2 so I think we should upgrade to that (and see if it fixes the OP’s issue). |
Looks like https://bugs.openjdk.java.net/browse/JDK-8217731 was backported. @paharvey are you able to try Adopt 11.0.7 build and see if the issue has been corrected? |
I created a PR as we should upgrade freetype anyway if there is a newer version out. I'd like to sit on it for a little while though as I wait for the opinions of the openj9 folks |
Upgrading just because there's a later version is potentially risky though. Have we verified whether the OP's issue is resolved by 2.10.2 yet? Otherwise this conversation is rather pointless and 2.5.3 would likely be the better option. |
I'm not sure how the OP tested that the fonts were not rendering properly. Without knowing that, I'm not sure how we can verify if the issue is resolved by using 2.10.2 |
The test case is in the openjdk bug referenced above. However I cannot reproduce the problem using the Windows x86-32 builds on my system (Which admittedly is an aarch64 one!) with either 11.0.7 or 11.0.5, but we should verify on a proper WIn/x64 system |
@paharvey Can you test with the latest 11.0.15? This should be resolved. |
Platform: Windows 10
Architecture: 64-bit
Freetype 2.7 contains a change that led to poorer quality font rendering on Windows.
As a workaround, users can use pre-2.7 font rendering by setting an environment variable:
FREETYPE_PROPERTIES=truetype:interpreter-version=35
A better solution may be to revert back to an earlier version of Freetype for Java 11+. Even better, someone could work out how to set "truetype:interpreter-version=35" as the default when compiling Freetype as part of the OpenJDK build process.
Note that most OpenJDK distributions also appear to be impacted by this issue. There are a few bugs already posted on OpenJDK's bug tracking system, but I am unable to add comments to those bugs: https://bugs.openjdk.java.net/browse/JDK-8214538
The text was updated successfully, but these errors were encountered: