Non installed font used instead of fallback font
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: ralf57, Unassigned)
Details
Attachments
(6 files)
Updated•15 years ago
|
Comment 3•15 years ago
|
||
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
Comment 9•14 years ago
|
||
Comment 10•14 years ago
|
||
Comment 11•14 years ago
|
||
Comment 12•14 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
Comment 18•5 years ago
|
||
I think this bug is responsible for GitHub looking janky in Firefox in Ubuntu 20.04.
GitHub's style specifies
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji
Somehow Firefox picks Nimbus Sans for this. Chromium picks Arial, which looks good.
fc-match -- -apple-system returns DejaVu Sans
fc-match BlinkMacSystemFont returns DejaVu Sans
fc-match "Segoe UI" returns DejaVu Sans
fc-match Helvetica returns Nimbus Sans
fc-match Arial returns Arial
fc-match sans-serif returns DejaVu Sans
fc-match "Apple Color Emoji" returns Noto Color Emoji
fc-match "Segoe UI Emoji" returns Noto Color Emoji
Comment 19•5 years ago
|
||
It looks like your fontconfig configuration doesn't resolve -apple-system, BlinkMacSystemFont, or "Segoe UI" to anything specific -- DejaVu Sans is just the default it'll return for any unknown name -- but it does provide Nimbus Sans as an alias/substitute for Helvetica, and so that gets used (because Helvetica is ahead of Arial in the font-family list). To prevent this you should remove the configuration file that specifies Nimbus Sans as the substitute for Helvetica.
Comment 20•5 years ago
|
||
Would it be incorrect to rename this bug to the following? Is this the central request?
Don't use fontconfig on Linux
Comment 21•5 years ago
|
||
Perhaps, but if we don't honor fontconfig rules then people complain about that, too (e.g. bug 1648085).
Comment 22•4 years ago
|
||
I'm having exactly the same display issues on a default installation of Fedora 33.
Most notably affected is GitHub.com (see https://github.com/primer/css/issues/1209).
These are my outputs of fc-match:
$ fc-match -- -apple-system
Vera.ttf: "Bitstream Vera Sans" "Regular"
$ fc-match BlinkMacSystemFont
Vera.ttf: "Bitstream Vera Sans" "Regular"
$ fc-match "Segoe UI"
Cantarell-Regular.otf: "Cantarell" "Regular"
$ fc-match Helvetica
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
$ fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
$ fc-match sans-serif
Vera.ttf: "Bitstream Vera Sans" "Regular"
$ fc-match "Apple Color Emoji"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
$ fc-match "Segoe UI Emoji"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
Comment 23•4 years ago
|
||
Updated•3 years ago
|
Description
•