When running with Java 11 on macOS 11.4, Aggressive Font Fallback doesn't work even in cases where it does work with Java 8.
It appears that the methods we use to check whether a font supports a codepoint (Font#canDisplay, Font#canDisplayUpTo) always report true or -1 respectively.
There are related reports on the internet but no known fixes or workarounds that I have seen:
Inspired from Intellij-community(Apache-2.0).
Does https://github.com/omegat-org/omegat/pull/118 work on macOS?
Fix merged.
A workaround is implemented in [39e2da]. The workaround attempts to detect when
Font#canDisplay
is unreliable, and in that case uses a slower, but accurate, codepath. Hence affected systems may see decreased performance of Agressive Font Fallback.Related
Commit: [39e2da]
documented in changes.txt
Released in OmegaT 5.6.0.