You are not logged in.

#1 2019-07-05 22:10:55

ja203
Member
Registered: 2019-07-05
Posts: 7

Font management

Hello

I'd appreciate some pointers on what priority fontconfig gives to different configuration files.

This stemmed from finding poor rendering from Okular which it turns out was rendering Arial as Hack.  fc-match arial told me hack was the fontconfig 'choice'. I subsequently edited ~/.config/fontconig/fonts.conf to alias it to noto sans and all good.

However, I am unclear as to where /etc/fonts/fonts.conf and /etc/fonts/conf.d/ come into play, as it appears there's a file there (30-metric-aliases) with plenty of good aliases for the MS fonts.  What reason might it be that these are not used?

Thanks for any help.

Offline

#2 2019-07-05 22:30:03

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Font management

The stuff in your home gets loaded through a file named "/etc/fonts/conf.d/50-user.conf". That's what's determining how your files get sorted into the rest of the files of the system.

I have no idea how you ended up with Arial = Hack. Maybe there isn't a file that set exactly that Arial = Hack relationship, maybe it's instead happening in a round-about way through the "sans-serif" name relationships?

You do not have the Arial font installed, right? What can then happen is something like this:

(1) Arial = sans-serif
(2) sans-serif = Hack
(3) Arial = Hack

Offline

#3 2019-07-06 21:37:45

ja203
Member
Registered: 2019-07-05
Posts: 7

Re: Font management

Thank you Ropid, that is very helpful.

Offline

Board footer

Powered by FluxBB