Issue metadata
Sign in to add a comment
|
Chrome ignores generic font family if it is not the last font on the list
Reported by
m...@m4tx.pl,
Nov 20
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Make sure you have "Noto Color Emoji" font installed. (or some equivalent one) 2. Open the attached HTML file. What is the expected behavior? The "test123" text is rendered using generic sans-serif font. What went wrong? "123" part is rendered using the Noto Color Emoji font, which looks weird (see screenshot). Firefox and Epiphany both seem to handle this properly. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 70.0.3538.102 Channel: stable OS Version: Arch Linux Flash Version: Looking at the CSS standard (https://www.w3.org/TR/css-fonts-3/#font-style-matching), it seems that the generic font should be used, since: > If no matching face exists or the matched face does not contain a glyph for the character to be rendered, the next family name is selected and the previous three steps repeated. My `sans-serif` font however, *does* contain digits; the same problem appears with `serif`. Only `monospace` seems to be working properly.
,
Nov 21
Adding expected rendering (from Firefox).
,
Nov 21
,
Nov 21
,
Nov 22
I suspect this is probably due to prioritizing Noto Color Emoji too high in the FontConfig configuration. m4tx@m4tx.pl, can you please describe possible modifications you may have done to fonts.conf and attach those here? sans-serif maps to a FontConfig alias, and if the Emoji font overrides it, Noto Color Emoji is attempted first.
,
Nov 22
,
Nov 26
As per comment #5, adding Needs-Feedback label and requesting reporter to please respond to comment #5. Thanks...!!
,
Nov 27
I've attached my full /etc/fonts directory. I haven't done any modifications to the config myself, and I believe I'm using exactly what Arch Linux fontconfig package provides me (https://www.archlinux.org/packages/extra/x86_64/fontconfig/). After looking at the config, it seems that the Noto Color Emoji font is only mapped as "emoji" font family, but maybe I'm missing something here. Also, I do not have ~/.config/fontconfig directory in my user's home directory, so 50-user.conf file should not affect anything.
,
Nov 27
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 30
The NextAction date has arrived: 2018-11-30
,
Nov 30
Thanks for following-up and attaching the files. Taking a look at the fonconfig files, I do not see anything unusual. > 1. Make sure you have "Noto Color Emoji" font installed. (or some equivalent one) How did you install "Noto Color Emoji", through an Arch package? If so, what does the package installer for this package do and where and under which file name is the Noto Color Emoji font placed?
,
Dec 2
Yes, I've installed the font through an Arch package. To be exact, I have the following Noto font packages installed: * https://www.archlinux.org/packages/extra/any/noto-fonts-emoji/ * https://www.archlinux.org/packages/extra/any/noto-fonts/ * https://www.archlinux.org/packages/extra/any/noto-fonts-extra/ * https://www.archlinux.org/packages/extra/any/noto-fonts-cjk/ It seems that the font is installed as /usr/share/fonts/noto/NotoColorEmoji.ttf. The package file (neither for noto-fonts-emoji, nor any other of the packages above) does not seem to contain any special install script, so only fontconfig cache and X fontdir indices are updated during install. The only other files that the packages contain are LICENSE and /etc/fonts configs, which I've already attached above.
,
Dec 3
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by krajshree@chromium.org
, Nov 21