0

This is a simple HTML page with both LGC and CJK characters:

<html>
<head>
<meta charset="UTF-8"/>
</head>
<body>
<pre style="font-family: serif;">
aaaa
ββββ
ДДДД
いいいい
일일일일
大大大大
</pre>
</body>
</html>

What is expected: All characters are displayed in serif. This is the case in Firefox.

What has happened: Chromium only displays LGC chars in serif, but CJK chars in sans-serif.

My Chromium font settings have standard=sans, serif=serif, sans=sans, mono=mono.

I'm on Linux and my fontconfig alias of serif is:

<alias>
    <family>serif</family>
    <prefer>
        <family>Droid Serif</family>
        <family>Noto Serif CJK JP</family>
    </prefer>
</alias>

And fc-match -s serif confirms these as top results.

If I change the style in HTML file, replacing serif by Droid Serif,Noto Serif CJK JP, then it works. But I couldn't figure out why Chromium doesn't work with fontconfig in this way. It seems like a kind of fallback issue.

Cyker
  • 7,326
  • 7
  • 49
  • 73

0 Answers0