-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Illegible gibberish fonts #11755
Comments
Does the version with new javafx from here work? https://builds.jabref.org/jdk-ea/
If this still show the same issues, can you try this simple javafx reproducer? |
Thanks for your reply. This is from the log of the version with new javafx:
|
Sorry, that is not related That is only from the pdf parser and has nothing to do with the fonts in jabref ui |
Here is a portion of the debug log from the version using new JavaFX, where the issue still persists. Thanks. ... Log File
|
Okay, thanks for taking the time. It's hard to narrow this down, so might involve a lot of trial and error: |
Okay, I just wanted to rule out that it's an issue with JabRef itself. |
Okay in the hope for some more clues:
and then start it again? It should now provide some extensive logs on font loading etc |
Closest issue I could find: https://bugs.openjdk.org/browse/JDK-8242617 The issue reported suggests that it is related to an OpenType (.otf) font, that when removed the issue is gone. The problem seems to be related to rendering (character spacing doesn't seem right) as well as character mapping (If you compare the expected text and the gibberish one you'll notice that it maps always to the same characters, for example 'e' always maps to 'g' and 'h' is mapped to 'j', etc). The mapping bit is controlled by something called cmap which is part of the font file. |
Here is the Command Prompt full output after modifying app.bat and removing all .otf fonts, even though these were system fonts that had been reset previously. The issue persists. ... Command Prompt output
|
Thanks, there is another more debug option: prism.debugfonts can you post the output with this command line?
|
@jsmm can you please test the reproducer with the new debug options? That would hopefully be enough to createa a bug rpeort for javafx |
I would like to know about the language of the system used. Tried with English, but that worked. Maybe, it is a Chinese setup? Maybe, we should ship a font by ourselfes? Suggested by https://guigarage.com/2014/10/integrate-custom-fonts-javafx-application-using-css/ (linked from https://stackoverflow.com/q/31344162/873282) |
For Chinese chars we have this in the FAQ https://docs.jabref.org/faq/windows#q-i-have-issues-with-the-chinese-display-language-in-windows-10-enterprise.-what-can-i-do |
Another approach, define font family? https://stackoverflow.com/questions/67893273/javafx-font-not-being-rendered-correctly |
This is an interesting rabbit hole. One can replace the default font: https://www.buildwindows.com/change-windows-font/ |
JabRef version
5.15 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11 Pro 22631
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
JabRef is rendering text with illegible gibberish fonts.
This issue was reported in #10212 and #9423. I have tried the following steps without success:
dism.exe
(with thecleanup-image
option) andsfc /scannow
.The issue occurs only in JabRef, and none of my other apps are affected. The issue persists in JabRef dev 5.16.348.
Could it be reasonable to assume that, regardless of whether this is a Windows issue, the problem is likely related to JabRef’s font settings?
From Log file:
2024-09-12 17:35:14 [pool-2-thread-3] org.apache.fontbox.ttf.CmapSubtable.processSubtype14() WARN: Format 14 cmap table is not supported and will be ignored
Appendix
The text was updated successfully, but these errors were encountered: