Closed Dieterbe closed 2 years ago
I have also tried setting the italic font explicitly like so:
font_family LiterationMono Nerd Font
italic_font LiterationMono Nerd Font:style=Italic
Seems like fc-match recognizes it properly:
~ ❯❯❯ fc-match 'LiterationMono Nerd Font:style=Italic'
Literation Mono Italic Nerd Font Complete.ttf: "LiterationMono Nerd Font" "Italic"
but again, using the test script, it doesn't show the italic text
The font name is Liberation Mono not Literation Mono. And don't use patched fonts, just install the nerd fonts separately. kitty will use it automatically and you can tell it to explicitly as well using symbol_map in kitty.conf.
And don't use patched fonts, just install the nerd fonts separately
I don't understand this. Nerd Fonts are patched fonts. Any nerd font installed is a patched font. Perhaps what you mean is to install liberation-mono and separate font packages to provide Font Awesome, Devicons, Octicons and Material Design icons ?
I was specifically recommended elsewhere to just go with nerd-fonts as it removes the complication of using multiple fonts to get the icon packages.
(the name of the nerd font version is Literation, as can be seen in fc-match and fc-list, and is explained further on https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/LiberationMono/font-info.md )
The nerd fonts are available as a separate standalone font, look in its releases page. Use that.
And if you want to find the names of fonts to use in kitty.conf, use kitty +list-fonts not fc-list.
Were nerd fonts downloaded from master branch or 2.1.0? The master branch is bugged right now.
Just for future reference, you should got to NerdFonts github, got to the latest release and search for "NerdFontSymbolsOnly". You should find everything here
Hello, first of all, thanks for a wonderful terminal program.
I have the
LiberationMono Nerd Font
installed:The problem can be reproduced using this minimal kitty.conf
When I run the following script, it does seem to use the proper font, but only for the "base version", underline and strikethrough (which didn't appear in fc-list/fc-match). the bolds and italics don't seem to work (these did show up)
See screenshot below.
Screenshots
Any idea why the bold and italics don't render correctly?
BTW, when I start kitty with
debug-font-fallback
, it doesn't seem to mention the base font. I'm not sure how useful this parameter is for this case, as it explicitly aims to debug "fallback glyhps" not in the main font. but wanted to mention it anyway.this doesn't do anything for me.
Anyway, I have provided the minimal config.
For completeness sake, here's more information about the font package and its contents: