-
Notifications
You must be signed in to change notification settings - Fork 510
8322251: [Linux] JavaFX is not displaying CJK on Ubuntu 23.10 and later #1439
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
Conversation
👋 Welcome back prr! A progress list of the required criteria for merging this PR into |
@prrace This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 20 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
* ie TrueType and CFF format fonts. | ||
*/ | ||
if ((fontformat != NULL) && | ||
((strcmp((char*)fontformat, "TrueType") != 0) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code in javax.web
uses equalLettersIgnoringASCIICase
in a similar situation, should we use case-insensitive comparison here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that but we have been using specific-case here for ever for TrueType and also in the Java 2D code - which BTW does allow CFF already and it looks for 'CFF' and more to the point the fontconfig API we are using itself explicitly looks for 'CFF' which it in turn gets by using freetype to examine font files and the API in freetype it uses says
* FT_Get_Font_Format * * @description: * Return a string describing the format of a given face. Possible values * are 'TrueType', 'Type~1', 'BDF', 'PCF', 'Type~42', 'CID~Type~1', 'CFF', * 'PFR', and 'Windows~FNT'.
So it is baked in from the start what case is used.
The windows build failure is unrelated:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks straightforward and logical.
the code looks right, I just can't verify the fix on a real system. |
Well, yes, I had to install 23.10 in a VirtualBox VM, then clone FX on to it along with all the tools |
I already had 23.10 ARM VM's configured. I was able to reproduce the original bug and verify that this PR fixes it. I can't comment on the code itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @beldenfox for confirming!
/integrate |
Going to push as commit 5182ea1.
Your commit was automatically rebased without conflicts. |
The Linux font lookup code is rejecting CFF OpenType fonts.
Since these are becoming common because of the Noto family this could soon be quite a problem.
I expect this fix is a candidate for backporting.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1439/head:pull/1439
$ git checkout pull/1439
Update a local copy of the PR:
$ git checkout pull/1439
$ git pull https://git.openjdk.org/jfx.git pull/1439/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1439
View PR using the GUI difftool:
$ git pr show -t 1439
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1439.diff
Webrev
Link to Webrev Comment