You are not logged in.

#1 2016-07-24 12:25:52

winger
Member
Registered: 2016-07-24
Posts: 2

Firefox using a horrible font for monospaced fonts

Link: https://github.com/torvalds/linux/blob/ … el/audit.c
Firefox: http://imgur.com/c6fZXGLl.png
Chromium: http://imgur.com/WM7VaAKl.png

It is almost unreadable in firefox because the font is too thin.
Clearly, I have the correct fonts installed, allowing chromium to show it in a sane manner in the first place.
The font family used in github is: font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;

$ fc-match Consolas
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

The font in firefox is not DejaVu Sans Mono. It looks like Nimbus Mono which I get from :

$ fc-match "Liberation Mono"
n022003l.pfb: "Nimbus Mono" "Regular"

I am not sure why its choosing the atrocious Nimbus Mono when Dejavu Sans Mono is available.
If I force firefox to use Dejavu Sans Mono by going to about:preferences#content, it works fine.

Last edited by winger (2016-07-24 12:31:59)


Join us now and share the software;
You'll be free, hackers, you'll be free.

Offline

#2 2016-07-24 12:44:28

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: Firefox using a horrible font for monospaced fonts

winger wrote:

If I force firefox to use Dejavu Sans Mono by going to about:preferences#content, it works fine.

Sounds like your problem is solved. Take this upstream to the Firefox bugtracker, if you feel there is a deeper issue.

Offline

#3 2016-07-24 12:57:42

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Firefox using a horrible font for monospaced fonts

Hmm. Does this look bad also:

pango-view --font="Nimbus Mono 10" --text "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 +-;:'#?<>~\""

I use:

$ fc-match "nimbus mono"
zco-Light.otf: "Nimbus Mono" "Regular"

Which is provided by texlive: /usr/share/texmf-dist/fonts/opentype/public/nimbus15/zco-Light.otf

Because of my /etc/fonts/conf.d/09-texlive-fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/usr/share/texmf-dist/fonts/type1</dir>
    <dir>/usr/share/texmf-dist/fonts/opentype</dir>
    <dir>/usr/share/texmf-dist/fonts/truetype</dir>
</fontconfig>

Offline

#4 2016-07-24 13:19:08

winger
Member
Registered: 2016-07-24
Posts: 2

Re: Firefox using a horrible font for monospaced fonts

Awebb wrote:

Sounds like your problem is solved. Take this upstream to the Firefox bugtracker, if you feel there is a deeper issue.

It doesn't really solve the issue because it also forces other fonts to be fixed, so the website loses originality.

brebs wrote:

Hmm. Does this look bad also:

Yeah. As horrible as ever.

Which is provided by texlive:

I couldn't find that directory hmm

I just switched to chromium anway smile


Join us now and share the software;
You'll be free, hackers, you'll be free.

Offline

#5 2016-07-24 17:59:53

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Firefox using a horrible font for monospaced fonts

Easy fix is to install ttf-liberation.

Offline

Board footer

Powered by FluxBB