Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359153 - www-client/chromium is not rendering asian fonts where firefox does
Summary: www-client/chromium is not rendering asian fonts where firefox does
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Chromium Project
URL: http://soc16ps.car.coocan.jp/kurumaya...
Whiteboard: ht-wanted
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 13:15 UTC by Mark Keisler
Modified: 2011-04-07 06:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot of example page in chromium (chromium-asian.png,41.56 KB, image/png)
2011-03-16 13:19 UTC, Mark Keisler
Details
example page in firefox (firefox-asian.png,53.91 KB, image/png)
2011-03-16 13:19 UTC, Mark Keisler
Details
emerge --info (emerge.info,12.73 KB, text/plain)
2011-03-16 17:42 UTC, Mark Keisler
Details
Chromium asian fonts screenshot without described problem (chromium-asian.png,85.55 KB, image/png)
2011-03-18 10:23 UTC, Julien Sanchez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Keisler 2011-03-16 13:15:08 UTC
www-client/firefox-3.6.15 renders this perfectly.  www-client/chromium-10.0.648.133 shows almost every character as an empty rectangle, although the page title is rendered correctly somehow.

Reproducible: Always

Steps to Reproduce:
1.view a web page with asian fonts
2.
3.
Actual Results:  
asian characters are shown as empty rectangles

Expected Results:  
proper characters

Fonts installed:

media-fonts/artwiz-aleczapka-en
media-fonts/corefonts
media-fonts/dejavu
media-fonts/encodings
media-fonts/font-adobe-100dpi
media-fonts/font-adobe-75dpi
media-fonts/font-adobe-utopia-100dpi
media-fonts/font-adobe-utopia-75dpi
media-fonts/font-adobe-utopia-type1
media-fonts/font-alias
media-fonts/font-arabic-misc
media-fonts/font-bh-100dpi
media-fonts/font-bh-75dpi
media-fonts/font-bh-lucidatypewriter-100dpi
media-fonts/font-bh-lucidatypewriter-75dpi
media-fonts/font-bh-ttf
media-fonts/font-bh-type1
media-fonts/font-bitstream-100dpi
media-fonts/font-bitstream-75dpi
media-fonts/font-bitstream-speedo
media-fonts/font-bitstream-type1
media-fonts/font-cronyx-cyrillic
media-fonts/font-cursor-misc
media-fonts/font-daewoo-misc
media-fonts/font-dec-misc
media-fonts/font-ibm-type1
media-fonts/font-isas-misc
media-fonts/font-jis-misc
media-fonts/font-micro-misc
media-fonts/font-misc-cyrillic
media-fonts/font-misc-ethiopic
media-fonts/font-misc-meltho
media-fonts/font-misc-misc
media-fonts/font-mutt-misc
media-fonts/font-schumacher-misc
media-fonts/font-screen-cyrillic
media-fonts/font-sony-misc
media-fonts/font-sun-misc
media-fonts/font-util
media-fonts/font-winitzki-cyrillic
media-fonts/font-xfree86-type1
media-fonts/freefont-ttf
media-fonts/freefonts
media-fonts/intlfonts
media-fonts/liberation-fonts
media-fonts/proggy-fonts
media-fonts/tengwar-fonts
media-fonts/terminus-font
media-fonts/unifont
media-fonts/urw-fonts
Comment 1 Mark Keisler 2011-03-16 13:19:19 UTC
Created attachment 266117 [details]
screenshot of example page in chromium
Comment 2 Mark Keisler 2011-03-16 13:19:49 UTC
Created attachment 266119 [details]
example page in firefox
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-16 16:48:10 UTC
Please paste your `emerge --info' into a comment.
Comment 4 Mark Keisler 2011-03-16 17:42:12 UTC
Created attachment 266157 [details]
emerge --info

emerge --info attached.  Was too large for a comment.
Comment 5 Mike Gilbert gentoo-dev 2011-03-18 04:21:22 UTC
I had the same issue on my system. From the looks of it, Firefox is rendering the text using a bitmap font; you can tell from the the ragged edges.

I made an educated guess and installed a truetype CJK font (bitstream-cyberbit), which allowed Chromium to correctly render the page.

I'm guessing that Chromium just doesn't know how to render bitmap fonts.
Comment 6 Julien Sanchez archtester 2011-03-18 10:22:32 UTC
I don't have this problem (chromium 11.0.690.0 (76722))
See my screenshot.

My font config just forbids bitmap fonts (too ugly):
/etc/fonts/conf.d/70-no-bitmaps.conf -> ../conf.avail/70-no-bitmaps.conf
I'm not sure if this is what solve the problem.

Installed fonts:

media-fonts/corefonts
media-fonts/dejavu
media-fonts/encodings
media-fonts/font-adobe-100dpi
media-fonts/font-adobe-75dpi
media-fonts/font-adobe-utopia-100dpi
media-fonts/font-adobe-utopia-75dpi
media-fonts/font-adobe-utopia-type1
media-fonts/font-alias
media-fonts/font-arabic-misc
media-fonts/font-bh-100dpi
media-fonts/font-bh-75dpi
media-fonts/font-bh-lucidatypewriter-100dpi
media-fonts/font-bh-lucidatypewriter-75dpi
media-fonts/font-bh-ttf
media-fonts/font-bh-type1
media-fonts/font-bitstream-100dpi
media-fonts/font-bitstream-75dpi
media-fonts/font-bitstream-speedo
media-fonts/font-bitstream-type1
media-fonts/font-cronyx-cyrillic
media-fonts/font-cursor-misc
media-fonts/font-daewoo-misc
media-fonts/font-dec-misc
media-fonts/font-ibm-type1
media-fonts/font-isas-misc
media-fonts/font-jis-misc
media-fonts/font-micro-misc
media-fonts/font-misc-cyrillic
media-fonts/font-misc-ethiopic
media-fonts/font-misc-meltho
media-fonts/font-misc-misc
media-fonts/font-mutt-misc
media-fonts/font-schumacher-misc
media-fonts/font-screen-cyrillic
media-fonts/font-sony-misc
media-fonts/font-sun-misc
media-fonts/font-util
media-fonts/font-winitzki-cyrillic
media-fonts/font-xfree86-type1
media-fonts/freefont-ttf
media-fonts/inconsolata
media-fonts/sil-gentium
media-fonts/urw-fonts
Comment 7 Julien Sanchez archtester 2011-03-18 10:23:29 UTC
Created attachment 266343 [details]
Chromium asian fonts screenshot without described problem
Comment 8 Mark Keisler 2011-03-18 13:52:46 UTC
emerging bitstream-cyberbit fixed the issue for me.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-03-19 15:19:25 UTC
Reproduced here, installed fonts:

# eix -I -C media-fonts --only-names
media-fonts/dejavu
media-fonts/encodings
media-fonts/font-alias
media-fonts/font-cursor-misc
media-fonts/font-misc-misc
media-fonts/font-util
media-fonts/liberation-fonts
media-fonts/urw-fonts

Julien, could you please do a little test? Try removing all fonts not included in the above list, and see if the problem reproduces. If it does, try adding fonts one by one and identify which contains needed characters. After identifying it, remove it too, and try other ones, because there might be multiple fonts containing the characters we want.

See also http://forums.gentoo.org/viewtopic-t-835345-highlight-chromium.html, people are reporting multiple fonts that fix the problem:

media-fonts/arphicfonts
media-fonts/ja-ipafonts
media-fonts/ipamonafont
media-fonts/bitstream-cyberbit

I have no idea which of those are worse or better, or which ones we should recommend in the ebuild. Any feedback is appreciated.
Comment 10 Julien Sanchez archtester 2011-03-21 21:08:46 UTC
After having uninstalled all, none of my emerged fonts really fixed the problem: I hadn't problem because I have droid fonts present in my ~/.fonts directory.

Emerging media-fonts/droid is also a solution.
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-03-29 15:25:51 UTC
Okay, so now the candidate list is:

media-fonts/arphicfonts
media-fonts/ja-ipafonts
media-fonts/ipamonafont
media-fonts/bitstream-cyberbit
media-fonts/droid

I've tested that those fonts work both with and without X USE flag enabled.
Comment 12 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-03-29 16:03:15 UTC
CJK team, can I ask for your help? It seems that www-client/chromium would need a runtime dependency on additional fonts to properly render http://soc16ps.car.coocan.jp/kurumaya/kuru032.html (and possibly other pages). I've gathered and tested some font package names that make the page display without "unknown character" ugliness.

However, I don't actually understand the page content, so I have no idea whether all those fonts are good, or whether we need a different set for different pages (Chinese, Japanese, Korean). For example, I've tried some Korean fonts (alee-fonts, unfonts, unfonts-extra), but some characters displayed as "unknown".

CJK team, could you suggest the next course of action?

Updated candidate list:

media-fonts/arphicfonts
media-fonts/ja-ipafonts
media-fonts/ipamonafont
media-fonts/bitstream-cyberbit
media-fonts/droid
media-fonts/takao-fonts
media-fonts/wqy-microhei
media-fonts/wqy-zenhei
Comment 13 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-04-07 06:40:53 UTC
I've added an elog message with some font suggestions. If there are additional fonts that should be added to that list (I'm pretty sure that's the case), please file new bugs.