-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
"Mono" fonts are not working in Kitty terminal #268
Comments
@sergei-dyshel I think I stumbled upon your issue in kitty actually. Thanks for opening an issue! I cannot give any ETA, but this project will keep moving forward little by little! |
Trying this new font for my powerline setup, and just ran across this too. 2.0 mono fonts not seen by kitty. I got excited for a minute when i read the 1.2 fonts still work, but the font I use is Noto and its not on 1.2 :( I guess I wait.. |
Seems multiple issues are being raised for really the same problem #269 |
Since This would allow to use original coding fonts and not patch anything, simplify migration to a different font once you are bored of your old one, and avoid potential issues that patching process might introduce to the original font. |
@maximbaz Did you manage to use the Symbol Nerd Font on kitty? I'm struggling with it because it refuses to display the characters I specify on |
To be honest I didn't even get to try it, as I stumbled upon the missing space issue and couldn't replace Font Awesome with Nerd Fonts anyway. But judging by what you are saying, the Symbol Nerd Font is also not monospace, so this exact issue applies to the Symbol font as well 😞 |
you can try the fonts in this branch of my fork for the time being, let me know if they work if you try them please. https://github.com/haasosaurus/nerd-fonts/tree/regen-mono-font-fix |
@haasosaurus That works for me. Tested using the Iosevka Term Nerd Font Complete Mono (all styles) and Kitty. |
@haasosaurus: I tried your patched Iosevka fonts on linux, and I see an issue where "ë" is rendered as "e¨" in a much smaller format as the other characters. This also occurs for other accented characters. I don't have this with the unpatched font. |
Absolutely awesome! |
Let me just link to the duplicate issue that I just updated... #323 |
One way to make Kitty recognize any font as monospace is to override the "spacing" attribute directly through configuration. Take a look at Kitty's changelog:
As an example, the "Noto Sans Mono CJK JP" font is not detected through
You'll probably have to run |
@haasosaurus Are you making a PR to this repo? It would be nice to get the fix upstreamed. |
This was a nightmare to get working again as the font needed to be patched as it had been depending on some kitty trickery where the actual patched font wasn't used but the icons for the other fonts was used instead. So I had to get the font patcher fork from ryanoasis/nerd-fonts/issues/268 and patch it remembering to pass the --mono flag
Is there a particular fork or patchset I need to patch fonts with this working? |
Can you suggest a font that is not monospace? |
https://github.com/haasosaurus/nerd-fonts/tree/regen-mono-font-fix doesn't work anymore, maybe it is too old. Following instructions from https://hub.docker.com/r/cdalvaro/nerd-fonts-patcher works for me. |
Hmm, this Issue is rather old, so it is hard to tell what is a current problem still and what not. There have been some fixes for the To help you I would need to know which font you want to use? And where you download it (Release, Release Candidate, direct from repo, package manager, ...). I did a small simple test; I never used
The Seems to work? Edit: Correct information about Menlo&Monaco |
https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font A ha! "If you are trying to use a font patched with NERD font symbols, dont do that as patching destroys fonts." The solution they suggest is mostly valid. But there is still a reason for patched fonts: Only then are the patched-in symbols aligned (vertically) to match the font's glyphs. I believe (did not check) that Kitty will not do that, just scale. If they do shift the scaled glyphs, let me know :-) |
That commit is ... needs too much labor to be examined. The author reformated the whole file and changed something (maybe, who knows) in the one same single commit. How shall one see what is changed when every line is changed? :-( Edit: Ah, they had the same commit cleaned up in his master: haasosaurus@cf625d4 @c02y It has been pulled in here. The docker image ... has its repo here: https://github.com/cdalvaro/docker-nerd-fonts-patcher |
When I run font-patcher from that repo/brach, it says |
How do you run it? |
|
If Python does not find the fontforge module, try calling the To be honest, on my main machine it also does not work to call Edit: WAT? |
Sorry I didn't try the fontforge command, I tried the docker way from the link I posted earlier after the failure, I don't have to worry about the revision of the nerd-fonts repo, or git clone the source code, I only need my original fonts and one docker command, very simple. |
Yes, but then ... how current is the docker image 😬 Looks like 2 years old, missing a lot of fixes. So if there is some concrete font that has problems with |
This docker image is at least not hopelessly old: https://hub.docker.com/r/nerdfonts/patcher |
Didn't notice there is an official docker way in the doc, I don't know how I found the third party docker hub. Just tried it:
put fonts in The generated fonts cannot be recognized by kitty, just like using the font-patcher command from the latest revision of nerd-fonts repo. If you are curious about the fonts, the fonts are |
This one? https://www.cdnfonts.com/operator-mono.font I can try to find the problem then. |
The Download link is dead, if you need the fonts, here is a link, it seems they are piracy though. |
Found this https://github.com/ajaybhatia/Operator-Mono which is probably a fork, but has a What do you use? Edit: Remove useless image |
So I can see no problem with I would say this has been solved. Shall we close this? |
I use And yeah, I think I know why it didn't work at the first beginning, I didn't pass the right flags Maybe it is better to add a warning about the flags for kitty in the README in
It is solved for me and for |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
AFAIU "Mono" versions are explicitly made to fit programs which require monospaced font. I'm trying to recent release (v2.0.0) with Kitty terminal emulator but Kitty doesn't pick them because it does not see them as monospaced.
After opening a issue kovidgoyal/kitty#527 in Kitty's repo the author told me that monospaced fonts are expected to have
spacing: 100
when querying them with fontconfig (fc-query <font file>
). And indeed the fonts I've tried (Iosevka, Fura Code, Hasklig) don't have this property at all.Interesting that fonts from previous release (v1.2) do have this property and are properly recognized by Kitty.
The text was updated successfully, but these errors were encountered: