Symbol_map U+e5fa-U+e62b Symbols Nerd Font Symbol_map U+e0a0-U+e0a2,U+e0b0-U+e0b3 Symbols Nerd Font Symbol_map U+E000-U+E00D Symbols Nerd Font # easily troubleshoot missing/incorrect characters with: Next, you’ll want to add something like this to your kitty config: font_family FiraCode Once you have the Symbols-2048-em Nerd Font Complete.ttf, copy it to ~/.local/share/fonts and then run sudo fc-cache -fr to reload the font cache. I would prefer to get all of the Nerd Fonts from the Nerd Fonts package.įirst, make sure you download the “Symbols Nerd Font” (symbols only) font package, you can find it at: src/glyphs/Symbols-2048-em Nerd Font Complete.ttf kitty -debug-font-fallbackįor example, on the Right I’m using xterm to edit ~/.config/kitty/nf and on the left is my kitty instance… Here you can see pretty clearly the “DejaVu Sans Mono” font is providing the U+2605 (★) and U+21b6 (↶) If you run kitty with, you’ll get a list of each character code that’s not found on the terminal you launched kitty from. Syntax is: symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols symbol_map itself can be specified multiple times. You can specify multiple code points, separated by commas and ranges separated by hyphens. Each unicode code point is specified in the form U+. Useful if you need special rendering for some symbols, such as for Powerline. Map the specified unicode codepoints to a particular font. However, with Kitty, the preferred way to get each font to show up is actually NOT to use patched fonts, instead to use kitty’s “symbol_map” function. The “quick and dirty” way to get every symbol you want to load is the use the patched Nerd fonts, for example the Fira_Code_vX.X.zip patched Nerd Fonts. vimrc, the correct stylized “V” icon from vim-devicons vimrc, the stylized V is shown for me as: 金 + 弦, which doesn’t exist in most chinese dictionaries… Editing. The stylized “V” from vim-devicons would show a very rarely used Chinese character… Editing. The most evident example was each time I would run: vim ~/.vimrc kovidgoyal, author of kittyįor me though, “auto detection” of nerd fonts never worked. However, I recommend against doing that, there is rarely a need for it, since nerd fonts will automatically be used if found in most cases. Yes, you list all of them them and yes you can have multiple ones. If you want to use the “fontconfig” method for your whole configuration, you might be able to add something like the following ~/.config/fontconfig/nf so that symbols from the Symbols Nerd Font will be preferred, but I was not able to get this method to work, so I went with the kitty symbol_map method. vim-airline using patched fonts… powerlevel10k zsh theme using patched fonts vim-devicons with patched fonts Most terminals need you to setup “patched fonts” if you want to use “powerline” symbols… If you’re looking to rice your command line, powerlevel10k, vim-devicons, and vim-airline can will use many of these “patched font” symbols. If kitty list-fonts still can’t find the font that you’re looking for, several steps possible steps to resolve are discussed on the kitty issue tracker. Once you edit fontconfig/nf you’ll need to rebuild the font cache and restart kitty to see the new font. To get a monospaced font to show up in Kitty if it’s not showing up on it’s own, you’ll need to edit ~/.config/fontconfig/nf and add a section to “scan” for the font “family” and set “spacing” for that family to 100. If you you have a budget to invest in a programming font, I think the MonoLisa font is even more attractive. If you’re looking for a good font to use, I suggest you take a look at the open source Fira Code font, since it has nice ligatures for programming… Fira Code example “ligatures” o visually simplify display of = –> ++ and := To check if a font can be used by Kitty, and the exact name you should enter to configure it, you’ll want to use: kitty list-fonts If that’s all you want, skip to kitty config.įirst, Kitty requires that fonts have a fixed spacing of 100 defined. I just wanted a kitty font config that works. I never wanted to learn how kitty deals with fonts. Kitty has tons of features, however the process to discover and configure those features is a bit more complicated than other terminals that I’ve used.įor me, the most confusing aspect of kitty was understanding how to setup fonts. You’ll find that it’s noticeably faster than gnome-terminal or vscode‘s built in terminal. Even if I was still tortured to use Mac OS X, I think I would use Kitty of iTerm. If you haven’t tried the kitty terminal emulator, it’s an awesome one. TL/DR: Just download Nerd Symbols Only Font and Config Kitty
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |