-
-
Notifications
You must be signed in to change notification settings - Fork 990
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
Small sized nerdfont symbols #1463
Comments
To print the character and reproduce the problem: |
Nerd fonts use private use unicode characters. These are all single cell characters. If you want them rendered in more than a single cell, you have to follow them with one or more spaces, then kitty will use the space cells to render the character as needed. |
With a space it is rendered bigger. However, given this glyph is tall and narrow I dont see how it can be rendered much bigger, without clipping vertically. Remember that kitty, unlike most terminals renders things inside cells, it does not allow overflow into neighboring cells. |
Use --debug-font-fallback to check what actual font your symbol is coming from. For me it is 3270Medium Nerd Font Mono which appears to render larger glyphs as expected. |
For me it's MesloLGM Nerd Font Mono. |
You shouldn't need to use a patched font in order to make use of NERD fonts with kitty. Try just installing the normal nerd font, kitty should fallback to it automatically for PUA characters and if not you can tell it to via symbol_map |
I am using it via symbol_map: |
Thank you ! I just installed this font and it works as expected now ! |
On Wed, Mar 13, 2019 at 06:26:38PM -0700, Luflosi wrote:
I am using it via symbol_map: `symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B MesloLGM Nerd Font Mono`
yes but use the non-patched nerfonts release rather than a patched
version of Menlo. Auto-patching of fonts rarely works perfectly.
|
I didn't know, thank you for your time ! |
I installed the 3270 Nerd Font from https://nerdfonts.com and replaced |
Try using more than one space, rendering with CoreText is different than |
Not that I know of, but it is a pretty simple function, try for |
This should theoretically be possible by adjusting the font size of private use unicode characters but I have no idea how to do that. Maybe someone else will try this in the future. |
I dont really understand why we should need to do that. If CoreText decides to render characters from some font at a specified pt sz too small, that is a bug in CoreText and should be fixed there. Or CoreText is rendering as Apple wants it to, in which case we should not tamper with it artificially. |
Did you confirm that kitty is passing in the correct width and height? |
offtopic, but does anyone know if there is font thats just purely symbolic variant of nerd fonts, not patched onto another font? |
yeah the 3270 font I referenced is pure symbols. |
Well, there are also "normal" characters in that font but if it's not patched that's probably the closest to what @SolitudeSF wants. |
I have the same problem here, the nerd font glyphs in any font i set shows ridiculously small And i have the 3270 Nerd Font Installed, i set an unpatched version of the font i want (Victor Mono) and i still can't get the symbols to render correctly. Any solution? If i do the |
I also just stumbled upon this problem while trying to use |
I have been here like folks above too. Turns out Kitty was innocent. I am using JetBrains Mono Nerd font and in the readme file it says,
So I set font Family for kitty (I am using 0.36.0 at the moment) JetBrains Nerd Font Mono and set icons via Here is my respective kitty config:
|
This has been bugging me for weeks and this finally solved it, thanks @Kjaer. |
I am glad I am be of help! But my settings above unfortunately overwrites emoji glyphs. So here is the new complete settings I have:
I took these glyph range from nerd fonts readme: https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points#overview |
Hi !
I just migrated from terminator to kitty and I pretty love this term.
I do not use tmux anymore except for specifig things.
Actually, I gave a little issue : glyphes are displayed very small, compared with terminator, as you can see in this screenshot
(kitty on top, terminator on the bottom)
FYI, I tested the pre-built installable version and the debian sid package version 0.13.3-1 as well.
The font is FiraCode (without nerdfonts) and I have apparently nerdfonts installed separately (I have this configuration for a very long time I can't remember the way I installed it).
Oh, and this is oh-my-zsh with the powerlevel9k theme that displays those symbols (I don't know if it's a clue).
Actually, I'm not sure that this is a kitty issue, but it would be nice if you could help me.
And btw it will maybe help other users…
The text was updated successfully, but these errors were encountered: