You are not logged in.
I'm trying to set up the "codicon" font for neovim so that I have those nice looking vscode icons on the autocompletion pop up. This would be my goal: https://i.imgur.com/uwV7aHt.png
That is a screenshot of my desktop, where this is working perfectly fine. Now, here is the exact same setup (I have the same dotfiles repo) on my notebook: https://i.imgur.com/r1wRSJk.png
For some reason, instead of the codicon font, something else is getting used. I don't know what, and I don't know how to change it. I saw how to set preferred fonts in the arch wiki, but I don't know how any of it works. I know I need to make a file with the xml rules set up, but how will alacritty (the terminal emulator where I run neovim) know that it should use that font instead of the other? More importantly, why is there an issue at all if it works fine on my desktop? All I did on my desktop was download the font, and boom, it worked (I used the vscode-codicons-git package from the AUR on both systems). On my notebook, it just defaults to this.
My assumption is that I must have some font installed that is taking preference, but I don't know what. I deleted a bunch of fonts, I copied over the entire fonts folder from my desktop and replaced the one on my notebook. I did the same with the font configs, I rebuilt the font cache afterwards, but nothing. I can see that the font is getting detected, I can query for it and it does appear, but alacritty doesn't seem to be loading it (alacritty also has the same settings on both systems).
If I run
FC_DEBUG=2053 alacrittyon both systems, I can see various entries for the codicon font on my desktop, but nothing at all on my notebook.
I don't know how fonts work to be fair... and I don't know how to debug this. Any help is appreciated. Thanks.
Last edited by tralph3 (2022-03-03 06:56:20)
Offline
Why do I always find the solution right after posting? I've been searching for days, and yet now I find it....
In case anyone wonders, here's how I figured out. Run this command:
fc-list ':charset=hex'where "hex" is the hex value of the character you want to look up. In my case it was EA93. That will give you a list of all fonts that are being used to render it, in order of preference. I just deleted the first one because I wasn't using it anyway.
If you want to find out the hex code, copy and paste the character here: https://unicode-table.com/en/
Offline
Why do I always find the solution right after posting? I've been searching for days, and yet now I find it....
Even worse: you forgot to indicate that ![]()
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.
Offline