You are not logged in.

#26 2020-03-27 20:34:40

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: Non-monospace font (noto) selected as monospace font

Did you add stuff to (deprecated) ~/.fonts.conf/ or ~/.fonts.conf.d/ ?
The working theory is that you must have done something™ to deal w/ the original problem that would prefer FreeMono or tried to resolve sans-serif to monospace and once the noto-situation got resolved, these changes kicked in…

Offline

#27 2020-03-28 11:14:45

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: Non-monospace font (noto) selected as monospace font

> Did you add stuff to (deprecated) ~/.fonts.conf/ or ~/.fonts.conf.d/ ?
No, it doesn't exist.


It probably doesn't matter but when I installed the system I tried this https://www.reddit.com/r/archlinux/comm … ul_easily/ but I have since removed the rule `/etc/fonts/conf.avail/70-no-bitmaps.conf`.

Do I understand correctly that my problem is that `FreeMono` is the first line of the output of `fc-match -s sans-serif`? (does order of lines matter?)
What would make FreeMono list as sans-serif?

Offline

#28 2020-03-28 21:06:57

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: Non-monospace font (noto) selected as monospace font

Do I understand correctly that my problem is that `FreeMono` is the first line of the output of `fc-match -s sans-serif`? (does order of lines matter?)

"Probably" and "yes".

What would make FreeMono list as sans-serif?

I've no idea, but the entire thing started w/ NotoSans being preferred as monospace and now FreeMono is preferred as sans-serif.

You can probably override this¹, but the condition is nuts.

What's the content of /home/ploppz/.config/fontconfig/fonts.conf ?

[1]
~/.config/fontconfig/conf.d/99-defaults.conf

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>monospace</family>
        <prefer><family>FreeMono</family></prefer>
    </alias>
    <alias>
        <family>serif</family>
        <prefer><family>FreeSerif</family></prefer>
    </alias>
    <alias>
        <family>sans-serif</family>
        <prefer><family>FreeSans</family></prefer>
    </alias>

</fontconfig>

Offline

#29 2020-03-29 08:24:41

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: Non-monospace font (noto) selected as monospace font

Thanks, seth, that 99-defaults.conf corrected all fonts problems it seems!

For the record, the requested file

$ cat /home/ploppz/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit name="rgba" mode="assign">
   <const>rgb</const>
  </edit>

  <edit name="autohint" mode="assign">
   <bool>true</bool>
  </edit>

  <edit name="hinting" mode="assign">
   <bool>true</bool>
  </edit>

  <edit name="antialias" mode="assign">
   <bool>true</bool>
  </edit>

  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>

  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
  </edit>
 </match>
</fontconfig>

Offline

Board footer

Powered by FluxBB