JDK-8160980 : Asian fonts are not rendered properly in WebView on Ubuntu 16.04
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u112,9
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux
  • Submitted: 2016-07-07
  • Updated: 2017-09-05
  • Resolved: 2016-07-27
Related Reports
Relates :  
Relates :  
Description
Asian fonts are not rendered properly in WebView on Linux.
Please see details in screenshots.
Tagging issue as regression, as it was not reproduced in previous runs.

To reproduce, load one of the following websites into WebView:
360buy.com
4399.com
56.com
7k7k.com
baidu.com
goo.ne.jp
hao123.com
indeed.com
ku6.com
pps.tv
qq.com
rakuten.co.jp
salesforce.com
sina.com.cn
sogou.com
sohu.com
soso.com
taobao.com
tudou.com
xunlei.com
youku.com

Comments
Removing fixVersion (bugs closed as "not an issue" should have empty fixVersion).
28-07-2016

In general documenting the list of packages that should be installed for Ubuntu can be challenging since they often change which packages are installed by default between releases. In this case, it seems a reasonable request, but we will need to do more digging to figure out the minimum set needed. I filed JDK-8162667 to track this.
27-07-2016

I installed few chinese font packages like fonts-wqy-microhei, fonts-arphic-uming, fonts-wqy-zenhei and i see the chinese websites characters appearing properly on ubuntu 16.04 Hence im closing this issue as "Not an issue"
27-07-2016

Since these fonts are not part of standard distribution, could you please request an update to product documentation and list packages which have to be installed for this to work? It's would be a kind of forbidden knowledge otherwise.
27-07-2016

My fonts are: abyssinica adf aenigma alee ancient-scripts arphic beteckna breip dejavu dustin ecolier-court ecolier-lignes-court engadget euterpe f500 fifthhorseman fonts-bpg-georgian fonts-georgewilliams fonts-guru-extra fonts-japanese-gothic.ttf fonts-japanese-mincho.ttf freefont gentium gentium-basic horai-umefont inconsolata isabella jsmath junicode jura kacst kacst-one lao larabie lato liberation linex lohit-punjabi lyx manchufont mgopen msttcorefonts nanum noto ocr-a okolaks openoffice oxygen padauk sinhala sjfonts takao-gothic tibetan-machine tlwg tomsontalks ttf-atarismall ttf-bitstream-vera ttf-dejavu ttf-essays ttf-khmeros-core ttf-marvosym ttf-staypuft ttf-summersby ttf-tiresias ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac tuffy ubuntu-font-family ubuntu-title unfonts- ore unifont wqy Chinese font packages: fonts-arphic-uming, fonts-tibetan-machine, fonts-wqy-zenhei
27-07-2016

I just installed a new Ubuntu 16.04 and installed all developer packages required by JavaFX. I can reproduce the bug on my system by loading http://www.4399.com/ in HelloWebView. There are missing Chinese characters (glyphs).
26-07-2016

[~arusakov] Can you mention what are the fonts installed @ /usr/share/fonts/truetype/ in your Ubuntu 16.04 (either u can attach a screenshot). Pasting below the fonts which my ubtuntu 16.04 has: murali@murali-VirtualBox:/usr/share/fonts/truetype$ ls abyssinica freefont lohit-punjabi takao-gothic ancient-scripts kacst nanum tibetan-machine dejavu kacst-one openoffice tlwg fonts-guru-extra lao padauk ttf-khmeros-core fonts-japanese-gothic.ttf liberation sinhala ubuntu-font-family Also are you able to see the missing characters as squares (means, behaviour is same as 8u102) or actual content ?
25-07-2016

Well, I have Ubuntu 16.04 and everything works fine for me. Looks like additional font installation required.
25-07-2016

As for 8u102 b13 and b14: the missing characters are rendered as squares (or unprintable characters). With JDK9 b126, the characters are simply missing.
21-07-2016

Lowering the priority to P3 since this affects only one OS version of one platform (Ubuntu 16.04 only).
20-07-2016

It seems very likely that this bug was exposed by the new WebKit. There were a few other changes between build 119 and 120, but none of them were backported to 8u.
20-07-2016

I tested on below jdk-9 versions on on ubuntu 16.04: 119 - Issue is not reproducible. 120 and 121 - When tested, i am getting below undefined symbol error and not able to run HelloWebView. ./bin/java HelloWebView ./bin/java: symbol lookup error: /home/murali/jdk-9/lib/amd64/libglass.so: undefined symbol: _Z36g_settings_schema_source_get_defaultv 122 - Issue is reproducible.
20-07-2016

in case this is Ubuntu bug (introduced after 14) can you submit a bug against Ubuntu and stamp a bugID here? in such case you can close this bug in JBS as External.
19-07-2016

This issue is specific to Ubuntu 16.04 (not repro in Ubuntu 14) and as per below link , this issue seems like Ubuntu 16 bug. http://www.xiangji.me/2016/04/29/solving-cjk-font-rendering-issue-in-chrome-on-ubuntu-16.04/ Currently i will be testing the jdk 9 builds just before webkit upgrade and after webkit upgrade.
19-07-2016

Missing characters in words observed (as attached screen shot) on Ubuntu 16.04 with 8u112-ea-b01
13-07-2016

Since this issue is specific to Ubuntu 16.04 , requesting defer from PSU16_04 ( added label "PSU16_04-defer-request")
13-07-2016

Tested this issue on ubuntu 16 with 8u102 (not able to reproduce) and jdk 9 ( able to reproduce this issue). Also i tested with 8u102 by replacing "libjfxwebkit.so" of 8u102 with "libjfxwebkit.so" of jdk-9 and this issue is not reproducible, which means that this issue might have caused due to JavaFx font code and not due to webkit code. Hence, this issue can be investigated further by JavaFX font team
12-07-2016

Tested on Ubunti 14.04 and this issue is not reproducible. Currently installing on ubuntu 16.
11-07-2016