You are not logged in.

#1 2020-03-15 17:49:52

aarnar
Member
Registered: 2020-03-15
Posts: 11

after installing gimp firefox font changed [solved]

i was using google noto fonts earlier but when i installed gimp my firefox and dmenu font changed to nimbus sans and i think this is because of gsfonts which installed as a dependency for gimp and i think thats what causing problem.
After going through wiki i added config file in ~/.config/fontconfig/fonts.conf to make the desired font as default.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
                           <match target="pattern">
                           <test qual="any" name="family"><string>"NimbusSans-Regular"</string></test>
                           <edit name="family" mode="assign" binding="same"><string>"Noto Sans  Regular"</string></edit>
 </match>
</fontconfig> 

but it didn't worked.
Help!

Last edited by aarnar (2020-04-28 22:52:43)

Offline

#2 2020-03-16 02:27:15

smhsketch
Member
Registered: 2020-03-08
Posts: 7

Re: after installing gimp firefox font changed [solved]

get bmenu and use it to change your font

Offline

#3 2020-03-17 00:02:28

aarnar
Member
Registered: 2020-03-15
Posts: 11

Re: after installing gimp firefox font changed [solved]

Hi smhsketch!
Thanks for replying.
But,can u please explain how can i use a menu generator to change my fonts?
I didn't get it.

Offline

#4 2020-03-17 00:27:08

loqs
Member
Registered: 2014-03-06
Posts: 19,084

Re: after installing gimp firefox font changed [solved]

@aarnar what is the output of the following:

fc-match 'Noto Sans  Regular'
fc-match NimbusSans-Regular

Last edited by loqs (2020-03-17 00:29:23)

Offline

#5 2020-03-17 10:12:08

aarnar
Member
Registered: 2020-03-15
Posts: 11

Re: after installing gimp firefox font changed [solved]

@loqs this is the output

NotoSans-Regular.ttf: "Noto Sans" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"

the second output is of after installing gimp which i had removed before ,there is one more thing after uninstalling gimp both my firefox and dmenu font fall back to noto

Last edited by aarnar (2020-03-17 10:18:46)

Offline

#6 2020-03-17 13:16:03

loqs
Member
Registered: 2014-03-06
Posts: 19,084

Re: after installing gimp firefox font changed [solved]

Try adjusting the XML to remove the quotes around the font names and  remove the style from the family name

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
                           <match target="pattern">
                           <test qual="any" name="family"><string>Nimbus Sans</string></test>
                           <edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit>
                           </match>
</fontconfig> 

Last edited by loqs (2020-03-17 13:16:30)

Offline

#7 2020-03-17 13:52:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,902

Re: after installing gimp firefox font changed [solved]

Sidebar: do you really want to map (the installed) nimbus completely to noto?
Maybe just default to noto:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>sans-serif</family>
        <prefer><family>Noto Sans</family></prefer>
    </alias>
</fontconfig>

Last edited by seth (2020-03-17 13:53:08)

Offline

#8 2020-03-29 17:35:30

aarnar
Member
Registered: 2020-03-15
Posts: 11

Re: after installing gimp firefox font changed [solved]

@loqs tried but not worked

Offline

#9 2020-03-29 17:37:50

aarnar
Member
Registered: 2020-03-15
Posts: 11

Re: after installing gimp firefox font changed [solved]

@seth i had tried it even before but it's not working sad

Offline

#10 2020-03-29 19:55:50

loqs
Member
Registered: 2014-03-06
Posts: 19,084

Re: after installing gimp firefox font changed [solved]

With the modified config what is the output of the following:

fc-match serif
fc-match sans-serif
fc-match monospace

Last edited by loqs (2020-03-29 20:31:10)

Offline

#11 2020-03-30 08:24:55

aarnar
Member
Registered: 2020-03-15
Posts: 11

Re: after installing gimp firefox font changed [solved]

this is the output

fc-match serif
NimbusRoman-Regular.otf: "Nimbus Roman" "Regular"
fc-match sans-serif
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
fc-match monospace
NimbusMonoPS-Regular.otf: "Nimbus Mono PS" "Regular"

Last edited by aarnar (2020-03-30 08:25:30)

Offline

#12 2020-03-30 13:28:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,902

Re: after installing gimp firefox font changed [solved]

Some config resolves the default generics to the nimbus variants.
Output of

fc-conflist

?

You should™ be able to override that by extrapolating the snippet in comment #7 and put it into eg. ~/.config/fontconfig/conf.d /99-defaults.conf
I'm not sure at which point ~/.config/fontconfig/fonts.conf is parsed (and it's a less flexible approach anyway)

Offline

Board footer

Powered by FluxBB