You are not logged in.
Pages: 1
I view this HTML file in the browser (Firefox) (using file:///path/to/file.html):
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<pre style="font-family: Consolas">
iiiii
wwwww
</pre>
<pre style="font-family: DejaVu Sans Mono">
iiiii
wwwww
</pre>
</body>
</html>The first block is rendered (according to inspector tool → fonts → "Fonts used") in "DejaVu Serif" font, while the second is in monospace as expected.
Running fc-match in the terminal:
$ fc-match "Consolas"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
$ fc-match "DejaVu Sans Mono"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"All extensions are disabled in Firefox. I did not make any font changes recently. There's no /etc/fonts/local.conf. Firefox version: "Version 92.0.1 (64-bit)".
I checked some pages https://bbs.archlinux.org/viewtopic.php?id=123470 and https://bbs.archlinux.org/viewtopic.php?id=241589 and https://bbs.archlinux.org/viewtopic.php?id=229987, there's no other suggestions.
Any idea what could be wrong?
---
Adding an explicit replacement entry to /etc/fonts/local.conf helps, but why doesn't Firefox use the correct one by default given fc-match can?
Last edited by k395 (2021-12-18 14:04:43)
Offline
/usr/share/fontconfig/conf.avail/45-latin.conf
<alias>
<family>Consolas</family>
<default><family>monospace</family></default>
</alias>fc-match monospaceOnline
These 4 lines are present in the file /usr/share/fontconfig/conf.avail/45-latin.conf, I haven't made any modification.
(Without local.conf,)
$ fc-match "Consolas"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
$ fc-match monospace
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"as expected.
Offline
The browser settings allow you to configure fonts, https://support.mozilla.org/en-US/kb/ch … bsites-use
What's configured for monospace fonts there?
Online
Pages: 1