Bug 1155409 - Some Chinese characters are not rendered correctly.
Summary: Some Chinese characters are not rendered correctly.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 05:49 UTC by Peng Wu
Modified: 2014-10-22 08:51 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-22 08:51:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot of policytool in Simplified Chinese environment (13.14 KB, image/png)
2014-10-22 05:57 UTC, Peng Wu
no flags Details
f20-alot of fons installed screenshot (178.44 KB, image/png)
2014-10-22 07:45 UTC, jiri vanek
no flags Details
f21-only basic fonts installed (30.12 KB, image/png)
2014-10-22 07:46 UTC, jiri vanek
no flags Details
reproducer (4.00 KB, text/plain)
2014-10-22 08:25 UTC, jiri vanek
no flags Details
fc-list for my f20 machine (14.47 KB, text/plain)
2014-10-22 08:40 UTC, jiri vanek
no flags Details
fc-list for my f21 machine (22.13 KB, text/plain)
2014-10-22 08:40 UTC, jiri vanek
no flags Details

Description Peng Wu 2014-10-22 05:49:47 UTC
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:

Comment 1 Peng Wu 2014-10-22 05:57:24 UTC
Created attachment 949256 [details]
Screenshot of policytool in Simplified Chinese environment

Comment 2 jiri vanek 2014-10-22 07:30:54 UTC
> 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?

Comment 3 jiri vanek 2014-10-22 07:45:35 UTC
Created attachment 949272 [details]
f20-alot of fons installed screenshot

Comment 4 jiri vanek 2014-10-22 07:46:52 UTC
Created attachment 949273 [details]
f21-only basic fonts installed

Comment 5 jiri vanek 2014-10-22 08:25:08 UTC
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.

Comment 6 Peng Wu 2014-10-22 08:37:55 UTC
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.

Comment 7 jiri vanek 2014-10-22 08:40:20 UTC
Created attachment 949293 [details]
fc-list for my f20 machine

Comment 8 jiri vanek 2014-10-22 08:40:51 UTC
Created attachment 949294 [details]
fc-list for my f21 machine

Comment 9 Peng Wu 2014-10-22 08:42:26 UTC
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.

Comment 10 jiri vanek 2014-10-22 08:51:40 UTC
[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.


Note You need to log in before you can comment on or make changes to this bug.