[OpenJDK 2D-Dev]  JDK-8219901: Noto fonts for East Asian countries cannot belong to CompositeFont
Toshio 5 Nakamura
TOSHIONA at jp.ibm.com
Thu Feb 28 09:51:04 UTC 2019
Could you review the fix and may I have a sponsor for it?
Even if Google Noto fonts were installed and listed by fontconfig
on Linux, CompositeFont couldn't contain it.
"src/java.desktop/share/classes/sun/font/CompositeFont.java" (l. 296)
validates the target font by comparing names. But, the current code
compared FamilyName with FullName (Font.getFontName()).
Then, Noto font was treated as invalid.
should provide FullName.
The cached font list is stored under ~/.java/fonts directory.
We should delete it before applying the fix.
This fix is possible to change the default font, if CompositeFont
is used (especially under Ubuntu18.04 and East Asian settings).
But, I believe the fixed behavior is correct.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the 2d-dev