-
-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list-fonts
does not show Fira Code
#827
Comments
list-fonts
does not show FiraCodelist-fonts
does not show Fira Code
I'm using Fira Code, so at least I can assure you that it is supposed to work. In my case I defined it to be my default
Try rebooting maybe? 🙂 |
Fira Code works out of the box with kitty (it is the font I used to develop kitty's ligature support and is even included in its test suite). You might need to re-build your fontconfig caches, and/or reboot to make sure the font is available. |
Thank you for your quick answer. I both re-built the fontconfig caches and rebooted my computer. I even set "Fira Code" as the default As I said, I'm sure there's something strange with my system; however since the other applications can see and use the font I'm assuming there is something different with the way |
Nope kitty just uses fontconfig to load fonts, which is what the vast majority of applications on linux systems use. Are you sure kitty is not using Fira Code? Run it with --debug-font-fallback to check |
It does not look like "Fira Code", and
|
And what's the output of kitty --debug-config |
Here:
|
You want font_family FiraCode-Regular or if you have made it the default monosspace font font_family monospace That should workaround list-fonts not being able to find it. |
Thank you, I tried both of your suggestions, but they did not help. It still uses DejaVu and I also confirmed that the issue is only with |
Sorry then I am out of ideas, your best bet is to debug the code. Font selection code in linux happens in get_font_files() function in fontconfig.c |
Thank you for all your ideas @kovidgoyal , and thank you for maintaining Kitty :). I'll take a look at the code then. Have a nice day. |
FWIW: |
I worked around the issue by creating a cc @magnetophon |
This will be because font config on NixOS is broken. Probably there are multiple fonts.conf files and depending on how fontconfig is initialized/invoked it reads different ones. See for example: NixOS/nixpkgs#8318 |
Thank you @kovidgoyal for all your help! I'll follow up from that issue. Have a nice day, and thank you for creating kitty! |
I'm having the same issue but cannot fix it with the suggested methods. My font of choice is the nerdfont version of Monofur and it is situated in
My config has only
The situation doesn't change when I set static char *font = "monofur Nerd Font Mono:pixelsize=28:antialias=true:autohint=true"; |
The font has to be monospaced, that is have a spacing of 100 in fontconfig, to be useable as the main font in kitty. |
Note that there is currently an issue with the Nerd Font patcher (ryanoasis/nerd-fonts#270) that causes their patched fonts to fail to be identified as monospace (and thus they don't show up in the output of If you want to use a Nerd Font patched font, you should use an older version of their patched fonts. Per a suggestion in the linked issue, I'm using v1.2 without issue. |
Ive been trying to convert a font from pcf to ttf, but list-fonts aint accepting the font. The font works fine in Sublime text editor. fc-list says "spacing: 100". It has embedded bitmaps.
Ive also tried to read the sources of Kitty, to find out why the font was rejected, but its too hard for me to understand. Is there anything else than FC_SPACING that is used? Is it possible to have more detailed debug output then debug-config and debug-fallback-font? |
kitty requires scalable fonts for its main font. fontconfig thinks your font is not scalable, see the line: [code] in the fontconfig output. |
Thanks, @kovidgoyal . Its working now. |
On ArchLinux, Fira Code no longer works with kitty since the recent upgrade to version 2-1 of the |
@frabjous yes, that's certainly a problem on the fonts side. Although it might be a feature rather than a bug because spacing=90 stands for dual. |
See #1968. |
Thanks to both! I've switched to the git version for now and all is well. |
Just chipping in I had this issue with new MacOS, and the problem ended up being the Fira fonts had been installed via Brew, but in a different account, so I didn't have them available to my new account.
|
I'm having a similar issue with FiraSans. It's detected by Font Manager and I can use it in other programs, I can also see it in its
[Edit] Wait, turns out FiraSans is not monospaced. I'll use FiraMono instead. |
Hello.
I'm trying to use "Fira Code" font with Kitty. I installed it with my OS's package manager, and now fontconfig sees it, but kitty doesn't.
I read many relevant issues, and they were mostly about the font not being monospaced. But, as far as I know Fira Code is monospaced and fontconfig shows the spacing as 100.
I am not very familiar with how fonts work, so probably I'm wrong somewhere; can you tell me what else should I do before I can use Fira Code with kitty?
The text was updated successfully, but these errors were encountered: