You are not logged in.
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
get bmenu and use it to change your font
Offline
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
@aarnar what is the output of the following:
fc-match 'Noto Sans Regular'
fc-match NimbusSans-RegularLast edited by loqs (2020-03-17 00:29:23)
Offline
@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
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
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
@loqs tried but not worked
Offline
@seth i had tried it even before but it's not working ![]()
Offline
With the modified config what is the output of the following:
fc-match serif
fc-match sans-serif
fc-match monospaceLast edited by loqs (2020-03-29 20:31:10)
Offline
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
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