You are not logged in.

#1 2012-01-14 21:24:30

Darklighter
Member
Registered: 2011-08-10
Posts: 11

[SOLVED] Unicode rendering in Chromium

I realize there has been several threads on the same topic, but I still haven't found a solution.

Both the GTK font and the default Chromium font is Arimo. Certain Unicode characters (mostly Asian scripts) are displayed correctly in GTK (tab titles, URL textbox, tooltips), but not on the rendered page. Example:

unicode.png
Here's my .fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
        <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
    </match>
</fontconfig>

I've also tried different fonts (e.g. ttf-dejavu), but the problem persists.

Last edited by Darklighter (2012-01-16 00:31:53)

Offline

#2 2012-01-14 22:00:36

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Unicode rendering in Chromium

Try changing the default Sans / Sans-Serif font to DejaVu (which should work fine), or to Arial (if you have it installed -- this is the one I use). You'll need fontconfig *nonlatin.conf of some sort, too. You may (though not necessarily should) find useful dedicated Asian fonts (see: here for examples).


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-01-14 22:44:24

Darklighter
Member
Registered: 2011-08-10
Posts: 11

Re: [SOLVED] Unicode rendering in Chromium

DejaVu doesn't render properly either. Also I'd prefer not installing dedicated fonts, as Arimo contains the required glyphs.

Could you elaborate on the nonlatin.conf suggestion? I couldn't find anything relevant in the wiki or Google.

Offline

#4 2012-01-15 01:36:19

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Unicode rendering in Chromium

If you have the default fontconfig version installed, you should have 40-nonlatin.conf / 65-nonlatin.conf in /etc/fonts/conf.avail (at least one of them). There are also corresponding *latin.conf(s) there, and you should have symbolic links to them in /etc/fonts/conf.d. Basic fontconfig configuration should be enough for most glyphs (Khmer is an example of language that requires extra fonts, though).

Last edited by bohoomil (2012-01-15 01:38:46)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-01-16 00:34:26

Darklighter
Member
Registered: 2011-08-10
Posts: 11

Re: [SOLVED] Unicode rendering in Chromium

It turns out that the culprit was the font. I switched to ttf-droid. Looks a lot better too!

Offline

Board footer

Powered by FluxBB