Description of problem: On Fedora 21, after launching java policytool in Simplified Chinese or Traditional Chinese environment, some characters are displayed as squares. Please fix it, thanks. BTW, recently we changed default Chinese fonts of Fedora 21 to Adobe "Source Han Sans" fonts, which has better font quality. Version-Release number of selected component (if applicable): java-1.8.0-openjdk-1.8.0.25-0.b18.fc21.i686 How reproducible: Launch java policytool Actual results: Some Chinese glyph are displayed as squares. Expected results: All Chinese glyph are displayed correctly. Additional info:
Created attachment 949256 [details] Screenshot of policytool in Simplified Chinese environment
> BTW, recently we changed default Chinese fonts of Fedora 21 to Adobe "Source > Han Sans" fonts, which has better font quality. Are you sure that the requested characters are in those fonts? May you post list of fonts, which have been used before this error, and which are used now? (probably outputs of rpm -qa) f20 I have run the policytool under zh_CN lang, and it looked ok. I did not had squares (but I also missed the (X) acronyms) See screenshot. f21 I have run the policytool under zh_CN lang, anf it looked same as yours screenshot == I reproduced issue. However, the font configuration on those two systems was completely different. I will attach the rpm -qa logs later. I will also attach very simple reproducer to speed up debugging. Simply - may you verify your fonts configuration?
Created attachment 949272 [details] f20-alot of fons installed screenshot
Created attachment 949273 [details] f21-only basic fonts installed
Created attachment 949290 [details] reproducer javac PolicyToolTexts.java then run java PolicyToolTexts one window to reproduce bug java PolicyToolTexts all window prints few more locales java PolicyToolTexts one or java PolicyToolTexts all is headless mode, but do not reproduce theissue.
For Fedora 20, cjkuni-uming-fonts and wqy-zenhei-fonts are the default Chinese fonts. For Fedora 21, adobe-source-han-sans-cn-fonts and adobe-source-han-sans-twhk-fonts are the default Chinese fonts. Yes, as they are Chinese fonts, I think they contains the glyphs. We changed the comps for Fedora 21. BTW, in long term, we may switch to google-noto-fonts for Chinese fonts.
Created attachment 949293 [details] fc-list for my f20 machine
Created attachment 949294 [details] fc-list for my f21 machine
cjkuni-uming-fonts and adobe-source-han-sans-twhk-fonts are Traditional Chinese fonts. wqy-zenhei-fonts and adobe-source-han-sans-cn-fonts are Simplified Chinese fonts.
[tester@tyr ~]$ sudo yum install "cjk*uni*" Loaded plugins: langpacks Resolving Dependencies --> Running transaction check ---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-52.fc21 will be installed ---> Package cjkuni-uming-fonts.noarch 0:0.2.20080216.1-54.fc21 will be installed --> Finished Dependency Resolution Dependencies Resolved fixed the issue on f21. Closing as not a bug. If you feel that those chars are missing in the fonts you are using, please redirect this bug to proper component.