[OpenJDK 2D-Dev] [13] 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?

Bug: https://bugs.openjdk.java.net/browse/JDK-8219901
Webrev: http://cr.openjdk.java.net/~tnakamura/8219901/webrev.00/

Even if Google Noto fonts[1] were installed and listed by fontconfig
on Linux, CompositeFont couldn't contain it.

Fix description:
"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.

[1] https://www.google.com/get/noto/

Toshio Nakamura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20190228/d6b6c996/attachment.html>

More information about the 2d-dev mailing list