You are not logged in.

#1 2022-08-15 09:18:21

fontskeepmeawake
Member
Registered: 2022-08-15
Posts: 2

[SOLVED] Fonts default to Noto Sans even after modifying config files

I'm currently having an issue setting up the font of kitty. I've tried setting "font_family" to both monospace and Mononoki, neither of which work.
This is what I get when I run "fc-match Mononoki":

NotoSans-Regular.ttf: "Noto Sans" "Regular"

And this is what I get when I run "fc-match monospace":

NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"

I'll admit I've played around with the /etc/fonts/conf.d/ folder, I tried deleting some files in there which were Noto Sans Mono symlinks to the conf.avail folder. It worked in that it didn't default Noto Sans Mono but it instead defaulted Freemono, then I tried deleting all the conf.d symlinks entirely,  which still defaulted to Freemono. I then made a symlink to all conf.avail files again and tried to leave it as it was.

This is what I get when running fc-conflist

+ /etc/fonts/conf.d/10-hinting-slight.conf: Set hintslight to hintstyle
+ /etc/fonts/conf.d/10-nerd-font-symbols.conf: No description
+ /etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Bitmap scaling
+ /etc/fonts/conf.d/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
+ /etc/fonts/conf.d/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
+ /etc/fonts/conf.d/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
+ /etc/fonts/conf.d/40-nonlatin.conf: Set substitutions for non-Latin fonts
+ /etc/fonts/conf.d/45-generic.conf: Set substitutions for emoji/math fonts
+ /etc/fonts/conf.d/45-latin.conf: Set substitutions for Latin fonts
+ /etc/fonts/conf.d/46-noto-mono.conf: No description
+ /etc/fonts/conf.d/46-noto-sans.conf: No description
+ /etc/fonts/conf.d/46-noto-serif.conf: No description
+ /etc/fonts/conf.d/48-spacing.conf: Add mono to the family when spacing is 100
+ /etc/fonts/conf.d/49-sansserif.conf: Add sans-serif to the family when no generic name
+ /etc/fonts/local.conf: No description
+ /etc/fonts/conf.d/51-local.conf: Load local customization file
+ /etc/fonts/conf.d/57-dejavu-sans-mono.conf: No description
+ /etc/fonts/conf.d/57-dejavu-sans.conf: No description
+ /etc/fonts/conf.d/57-dejavu-serif.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-serif.conf: No description
+ /etc/fonts/conf.d/60-generic.conf: Set preferable fonts for emoji/math fonts
+ /etc/fonts/conf.d/60-latin.conf: Set preferable fonts for Latin
+ /etc/fonts/conf.d/65-droid-kufi.conf: No description
+ /etc/fonts/conf.d/65-droid-sans-mono.conf: No description
+ /etc/fonts/conf.d/65-droid-sans.conf: No description
+ /etc/fonts/conf.d/65-droid-serif.conf: No description
+ /etc/fonts/conf.d/65-fonts-persian.conf: No description
+ /etc/fonts/conf.d/65-khmer.conf: No description
+ /etc/fonts/conf.d/65-nonlatin.conf: Set preferable fonts for non-Latin
+ /etc/fonts/conf.d/66-noto-mono.conf: No description
+ /etc/fonts/conf.d/66-noto-sans.conf: No description
+ /etc/fonts/conf.d/66-noto-serif.conf: No description
+ /etc/fonts/conf.d/69-unifont.conf: No description
+ /etc/fonts/conf.d/70-no-bitmaps.conf: Reject bitmap fonts
+ /etc/fonts/conf.d/70-yes-bitmaps.conf: Accept bitmap fonts
+ /etc/fonts/conf.d/80-delicious.conf: No description
+ /etc/fonts/conf.d/90-synthetic.conf: No description
+ /etc/fonts/fonts.conf: Default configuration file
- /usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf: Re-define fonts dirs sample
- /usr/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf: Enable autohinter if font doesn't have any hinting
- /usr/share/fontconfig/conf.avail/10-autohint.conf: Enable autohinter
- /usr/share/fontconfig/conf.avail/10-hinting-full.conf: Set hintfull to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-medium.conf: Set hintmedium to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-none.conf: Set hintnone to hintstyle
- /usr/share/fontconfig/conf.avail/10-no-sub-pixel.conf: Disable sub-pixel rendering
- /usr/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf: Enable sub-pixel rendering with the BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf: Enable sub-pixel rendering with the vertical BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf: Enable sub-pixel rendering with the vertical RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-unhinted.conf: Disable hinting
- /usr/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf: Use lcdlegacy as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-light.conf: Use lcdlight as default for LCD filter
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-serif.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-serif.conf: No description
- /usr/share/fontconfig/conf.avail/25-unhint-nonlatin.conf: Disable hinting for CJK fonts
- /usr/share/fontconfig/conf.avail/35-lang-normalize.conf: No description
- /home/wenus/.config/fontconfig/fonts.conf: No description
- /usr/share/fontconfig/conf.avail/50-user.conf: Load per-user customization files

This is what I put in /etc/fonts/local.conf to see if it would do anything:

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

This is what I put in ~/.config/fontconfig/fonts.conf for the same purpose

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>

	<match target="pattern">
		<test name ="family" qual="any">
			<string>monospace</string>
		</test>
		<edit binding="strong" mode="prepend" name="family">
			<string>Mononoki</string>
		</edit>
	</match>

</fontconfig>

And finally, following what the wiki told me, I symlinked 50-user.conf to ~/.config/fontconfig/conf.d. I also removed the symlink for the same file that was on /etc/fonts/conf.d for precaution.

If there's any other information I can provide you with feel free to ask. Thanks in advance.

Last edited by fontskeepmeawake (2022-08-17 00:08:14)

Offline

#2 2022-08-15 10:45:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,770

Re: [SOLVED] Fonts default to Noto Sans even after modifying config files

I adapted the first example from https://wiki.archlinux.org/title/Metric … figuration for /etc/fonts/local/conf .

It uses binding="same"  mode="assign" to force my favorite fonts incase applications ask for serif , sans serif or monospace .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-08-15 23:45:26

fontskeepmeawake
Member
Registered: 2022-08-15
Posts: 2

Re: [SOLVED] Fonts default to Noto Sans even after modifying config files

Lone_Wolf wrote:

I adapted the first example from https://wiki.archlinux.org/title/Metric … figuration for /etc/fonts/local/conf .

It uses binding="same"  mode="assign" to force my favorite fonts incase applications ask for serif , sans serif or monospace .

I tried, I edited the monospace part to Mononoki isntead of Liberation Mono and it still doesn't work, it now defaults monospace to Freemono and Mononoki to Liberation Sans.

Edit: I've fixed it, but I had to install Fontmatrix from the AUR. What I was getting wrong was the family name. Mononoki's font family name is actually "mononoki Nerd Font (Mono)", the problem is I couldn't find anywhere where it said so. First I edited the /etc/fonts/local.conf, then I deleted it, symlinked 50-user.conf back into /etc/fonts/conf.d and then edited the fonts.conf located at my home directory and it worked.

Now I have another question, how do I see a font's family name without having to download Fontmatrix? And if there's a way to do so, how do I completely remove Fontmatrix?

Last edited by fontskeepmeawake (2022-08-16 03:08:59)

Offline

#4 2022-08-16 06:59:37

seth
Member
Registered: 2012-09-03
Posts: 57,018

Re: [SOLVED] Fonts default to Noto Sans even after modifying config files

fc-list | grep -i "generic enough pattern"

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB