Helvetica matches to "DejaVu Sans" instead of "Liberation Sans" on Ubuntu 18.04
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
People
(Reporter: jrmuizel, Unassigned)
Details
Attachments
(1 file)
73 bytes,
text/html
|
Details |
Running fc-match Helvetica
correctly gives "Liberation Sans" so it seems like there's something that Firefox is doing wrong. Chrome also correctly uses "Liberation Sans".
Reporter | ||
Comment 1•3 years ago
|
||
Any thoughts as to why this would be happening Jonathan?
Comment 2•3 years ago
|
||
More information needed: we'd need to look at the fontconfig rules that are present on the system. What specifies that Liberation Sans should be used to satisfy a request for Helvetica?
Reporter | ||
Comment 3•3 years ago
|
||
It looks like it's the following rules:
<alias>
<family>Helvetica</family>
<default>
<family>Arial</family>
</default>
</alias>
<alias binding="same">
<family>Arial</family>
<accept>
<family>Arimo</family>
<family>Liberation Sans</family>
<family>Albany</family>
<family>Albany AMT</family>
</accept>
</alias>
from https://github.com/behdad/fontconfig/blob/master/conf.d/30-metric-aliases.conf
Reporter | ||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Huh, interesting. Looks like maybe we don't follow the multiple levels of aliasing properly. Has it always behaved like this, or is this a regression?
Reporter | ||
Comment 5•3 years ago
|
||
I have no idea if this is a regression or not.
Comment 6•3 years ago
|
||
We'll need to re-implement some of the fontconfig integration stuff anyhow to work with the cross-process font list from bug 1514869, so maybe we can handle this better there.
Description
•