You are not logged in.

#1 2020-05-18 21:39:19

palozano
Member
Registered: 2020-05-07
Posts: 6

Font problem

I recently installed Arch, and when I did it I installed otf-fira-code and ttf-dejavu.

The problem is that some glyphs (Unicode symbols?) are not showing up when using aa different prompt in Zsh (actually, Spacepromt in Ohmyzsh).
I selected Fira Code in my terminal emulator (terminator) but the glyphs/symbols don't show up. I can see that the font is properly configured because in the window title you can see the Fira Code font. And it's not a problem related to the terminal because I tried another one (Alacritty) and the problem persists, so I think it must be something about my font configuration.

I read the Wiki about Font Config (https://wiki.archlinux.org/index.php/Font_configuration) but still don't know what I'm doing wrong.

Offline

#2 2020-05-18 21:51:08

rockdie
Member
From: Athens
Registered: 2019-11-24
Posts: 16

Re: Font problem

ttf-meslo
ttf-iosevka

Last edited by rockdie (2020-05-18 21:53:33)

Offline

#3 2020-05-18 21:57:34

palozano
Member
Registered: 2020-05-07
Posts: 6

Re: Font problem

I would like to solve the problem instead of installing just another font. Mainly because I have another distro (Manjaro) with the same setup but there it works, and I don't know why.

Offline

#4 2020-05-18 22:13:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,378

Re: Font problem

The  more likely reason is that it doesn't work like that on Manjaro and those glyphs not actually being present in Fira Code and being replaced due to more default fonts and relevant fallback rules.

See for example: https://unix.stackexchange.com/a/393740 to find out what the actual glyph is and which font does actually provide it on Manjaro.

Last edited by V1del (2020-05-18 22:19:54)

Offline

#5 2020-05-18 22:24:35

palozano
Member
Registered: 2020-05-07
Posts: 6

Re: Font problem

Yes, that's what I ended up thinking. I installed Fira Code from NerdFonts (which include glyphs) and they work now (somehow with different spacing, though).

Is there any way to find which fonts are rendering those fonts in my other arch-based distro? So I can set a fallback rule to that one and use it.

Offline

#6 2020-05-19 06:51:56

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

Re: Font problem

FC_DEBUG=4 pango-view --font="Fira Code" -t λ | grep family:

Replace λ with the glyph you care about.
The actual behavior btw. depends on the used VTE.

Last edited by seth (2020-05-19 06:53:27)

Offline

Board footer

Powered by FluxBB