You are not logged in.

#1 2017-12-18 21:35:19

IceS2
Member
Registered: 2017-05-04
Posts: 39

[SOLVED] fc-match returning the same font for every query

Hello guys, I'm having some trouble changing my Polybar font, so I started searching around and found that the font I config should be matched if looked up by fc-match.

Every time I try to use fc-match, it returns me the same font:

    fc-match Inconsolata
    Fura Mono Regular Nerd Font Complete Mono.otf: "FuraMono Nerd Font Mono" "Regular"

    fc-match System
    Fura Mono Regular Nerd Font Complete Mono.otf: "FuraMono Nerd Font Mono" "Regular"

Using

fc-list | grep Inconsolata

returns me a bunch of Inconsolata fonts.

Last edited by IceS2 (2017-12-19 10:36:48)

Offline

#2 2017-12-18 21:38:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] fc-match returning the same font for every query

What symlinks/files do you have in /etc/fonts/conf.d?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-12-18 23:09:47

IceS2
Member
Registered: 2017-05-04
Posts: 39

Re: [SOLVED] fc-match returning the same font for every query

undercity% ls -la /etc/fonts/conf.d
total 12
drwxr-xr-x 2 root root 4096 Dec 18 21:03 .
drwxr-xr-x 4 root root 4096 Dec 18 21:03 ..
lrwxrwxrwx 1 root root   44 Nov 14 18:00 10-hinting-slight.conf -> /etc/fonts/conf.avail/10-hinting-slight.conf
lrwxrwxrwx 1 root root   48 Nov 14 18:00 10-scale-bitmap-fonts.conf -> /etc/fonts/conf.avail/10-scale-bitmap-fonts.conf
lrwxrwxrwx 1 root root   43 Dec 18 20:39 10-sub-pixel-rgb.conf -> /etc/fonts/conf.avail/10-sub-pixel-rgb.conf
lrwxrwxrwx 1 root root   47 Dec 18 20:39 11-lcdfilter-default.conf -> /etc/fonts/conf.avail/11-lcdfilter-default.conf
lrwxrwxrwx 1 root root   47 Nov 14 18:00 20-unhint-small-vera.conf -> /etc/fonts/conf.avail/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root   44 Nov 14 18:00 30-metric-aliases.conf -> /etc/fonts/conf.avail/30-metric-aliases.conf
lrwxrwxrwx 1 root root   31 Jan 12  2017 31-cantarell.conf -> ../conf.avail/31-cantarell.conf
lrwxrwxrwx 1 root root   38 Nov 14 18:00 40-nonlatin.conf -> /etc/fonts/conf.avail/40-nonlatin.conf
lrwxrwxrwx 1 root root   37 Nov 14 18:00 45-generic.conf -> /etc/fonts/conf.avail/45-generic.conf
lrwxrwxrwx 1 root root   35 Nov 14 18:00 45-latin.conf -> /etc/fonts/conf.avail/45-latin.conf
lrwxrwxrwx 1 root root   39 Nov 14 18:00 49-sansserif.conf -> /etc/fonts/conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root   34 Nov 14 18:00 50-user.conf -> /etc/fonts/conf.avail/50-user.conf
lrwxrwxrwx 1 root root   35 Nov 14 18:00 51-local.conf -> /etc/fonts/conf.avail/51-local.conf
lrwxrwxrwx 1 root root   37 Nov 14 18:00 60-generic.conf -> /etc/fonts/conf.avail/60-generic.conf
lrwxrwxrwx 1 root root   35 Nov 14 18:00 60-latin.conf -> /etc/fonts/conf.avail/60-latin.conf
lrwxrwxrwx 1 root root   43 Nov 14 18:00 65-fonts-persian.conf -> /etc/fonts/conf.avail/65-fonts-persian.conf
lrwxrwxrwx 1 root root   38 Nov 14 18:00 65-nonlatin.conf -> /etc/fonts/conf.avail/65-nonlatin.conf
lrwxrwxrwx 1 root root   37 Nov 14 18:00 69-unifont.conf -> /etc/fonts/conf.avail/69-unifont.conf
lrwxrwxrwx 1 root root   40 Dec 18 20:39 70-no-bitmaps.conf -> /etc/fonts/conf.avail/70-no-bitmaps.conf
lrwxrwxrwx 1 root root   39 Nov 14 18:00 80-delicious.conf -> /etc/fonts/conf.avail/80-delicious.conf
lrwxrwxrwx 1 root root   39 Nov 14 18:00 90-synthetic.conf -> /etc/fonts/conf.avail/90-synthetic.conf
-rw-r--r-- 1 root root  967 Nov 14 18:00 README

Now I've got another problem @Trillby, basically my fontconfig got screwed up somehow and my fontawesome icons from polybar are small as fuck. Changing the size from the polybar config changes nothing (I manage to get them back to normal if I uninstall nerd-fonts-complete, guessing nerd-fonts-complete is screwing my fontconfig, sincer the font that appears is installed with that package)

Offline

#4 2017-12-19 10:36:33

IceS2
Member
Registered: 2017-05-04
Posts: 39

Re: [SOLVED] fc-match returning the same font for every query

OK, I'm seriously an idiot when we talk about fonts.
The problem was that I was using the wrong alias for the fonts.
When using fc-list, the return is something like:

 /usr/share/fonts/TTF/System San Francisco Display Regular.ttf: SFNS Display:style=Regular 

I was using the name "System San Francisco Display" instead of "SFNS Display". Tried it today and it worked!!!
About my fontAwesome icons being small, I realized nerd fonts are patched WITH those icons and I was using one of them as font-0, while fontawesome was font-1. So fontAwesome wasn't being used

Offline

Board footer

Powered by FluxBB