-
Notifications
You must be signed in to change notification settings - Fork 221
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
Fonts with contextual alternates are not correct rendered #448
Comments
Corretto is using FreeType for the rendering, can you try the tools mentioned on this page to see if this is a problem with FreeType directly?
|
Unlikely FreeType issue. Do you use HarfBuzz? |
I don't think we can use HarfBuzz in Corretto-8 right now. The integration of HarfBuzz has been delivered in jdk9^ref and never get backported to jdk8u. I don't think I have sufficient knowledge on this topic. just offer 2 cents I found on internet. it looks like freetype can also handle OpenType Layout.
if we update our freetype in corretto-8, can we solve this issue? |
Wow. You found some really old page and forgot to quote the top warning. :) I am 100% sure that you do not use FreeType 1 because nobody has been for 20 years. In a nutshell. FreeType 2 does not do perform any text layout. FreeType only reads font files and returns scaled glyph images per client (layout library) request. We simply do not have facilities to interpret contextual variations. You must be using something else for layout. |
I believe the font layout code resides here. I'm not familiar with that part of the codebase, but if this issue impacts multiple vendors and not just Corretto (seems so based on the referenced Adoptium issue), we can consider opening an issue for it at https://bugs.openjdk.org/ |
Corretto-11+ on Linux is built to use the bundled lib in the repository so it will use FreeType 2.12.1 and HarfBuzz 4.4.1. Corretto-8 and upstream OpenJDK8 are in maintenance mode and are only accepting critical fixes. In the description you mentioned testing on 11-16 and 19? Did you mean 11-17? If the root cause can be identified we could get it fixed in the tip version of OpenJDK and backported to 17 and 20 which will be the feature release for the next quarterly release. |
No, I have not yet tested it with 17. The issue from Adoptium was created long ago, the newest version was 16 at that time. Today I tested it with 19 and this issue is still there, so I assume 17 is also affected. |
@benty-amzn Yes please, open an issue in OpenJDK. I would do it by myself, but I can not, because I do not have the permissions. It is really a complicated process to get things reported in OpenJDK as an "Ottonormalverbraucher". |
Pay attention to the e's, for example:
Amazon Corretto 8: wrong rendering for font size less than 101 and other wrong rendering for font size greater than 100

Amazon Corretto 11-16, 19: wrong rendering for font size less than 101 and correct rendering for font size greater than 100

Example code:
FontRederingErrorDemo.zip
Fonts with feature contextual alternates:
OS:
It would be great if this could be fixed for OpenJDK 8 (for all sizes).
The text was updated successfully, but these errors were encountered: