Closed damienbutt closed 2 months ago
Do not use patched fonts in kitty. Read the FAQ: https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font
Same problem. However my font is not patched nerd font, but still can not found. The question is LXGW WenKai
can not be found in fixed-width collection in font-book, but however it worked quiet well in previous versions of kitty.
f[0.033] Cannot use both macos_titlebar_color and background_opacity
[0.154] The font LXGW WenKai Mono Light was not found, falling back to Menlo
[0.154] The font LXGW WenKai Mono Bold was not found, falling back to Menlo
[0.192] Cell height calculation:
[0.192] line height from line origins: 40.000000
[0.192] line bounds: origin-y: -8.018555 height: 39.578125
[0.192] line bounds-no-leading: origin-y: -8.018555 height: 39.578125
[0.192] bounds metrics: ascent: 31.559570
[0.192] line metrics: ascent: 31.559570 descent: 8.018555 leading: 0.000000
[0.192] font metrics: ascent: 31.559570 descent: 8.018555 leading: 0.000000 underline_position: -2.158203
[0.192] cell_height: 40 baseline: 32 underline_position: 34 strikethrough_position: 20
[0.251] Text fonts:
[0.251] Normal: Menlo-Regular: /System/Library/Fonts/Menlo.ttc
[0.251] Bold: Menlo-Bold: /System/Library/Fonts/Menlo.ttc
[0.251] Italic: Menlo-Italic: /System/Library/Fonts/Menlo.ttc
[0.251] Bold-Italic: Menlo-BoldItalic: /System/Library/Fonts/Menlo.ttc
Yes that was a bug. kitty allows only fixed width fonts for its main font. On macOS that restriction was not previously enforced now it is.
On macOS that restriction was not previously enforced now it is.
Does it means I must stay at version 0.35.2 forever ?
Yes, if you want to use non-monospaced fonts as the main font in kitty, then you will have to stay with 0.35.2
I like Kitty very much and use it on all operating systems. I used it with a monospaced font, but this font is not classified as monospaced on Macos. I did not figure out how this is determined. I added it to the Fixed Width group, but that did not make a difference. At the moment I only have the choice of 5 fonts, and I do not like any of them.
To choose the font you like is a central point in a terminal and in my opinion much more important than an esoteric speed advantage that you probably can measure but not experience anymore. If this stays like that you force me to use another terminal emulator, which is a bummer.
There are literally hundreds of monospace fonts that are actually monospaced and work with kitty. Pick one. I'm afraid I am not going to gimp kitty to work with non-monospaced fonts.
I use a monospaced font that is derived from DejaVue Mono: https://github.com/BRUTALISM/Brutalist
I wonder how the font kitten and the Font Book App determine what is a monospaced font and what not. Maybe I can fix it? Btw patched font is not patched font, some of us add icon sets that are not part of the standard Nerdfont collection.
This worked perfectly fine up to now, and performance was very competitive as far as I can tell. I wonder what has changed and why this is necessary?
On Fri, Sep 06, 2024 at 03:58:01AM -0700, Jan Eitzinger wrote:
I use a monospaced font that is derived from DejaVue Mono: https://github.com/BRUTALISM/Brutalist
I wonder how the font kitten and the Font Book App determine what is a monospaced font and what not. Maybe I can fix it? Btw patched font is not patched font, some of us add icon sets that are not part of the standard Nerdfont collection.
You can load your icon set from any standalone font using symbol_map you dont need to add icons to font files.
This worked perfectly fine up to now, and performance was very competitive as far as I can tell. I wonder what has changed and why this is necessary?
It was a bug that non monospaced fonts were allowed on macOS and no it didnt work perfectly fine, you just didnt happen to notice any issues at your particular font size.
Dejavu Mono installed via homebrew works fine and I got my icons working using the symbol_map option.
I am still unsure why the Brutalist Mono font that is basically Dejavu Mono is not detected as a monospace font, but I try to figure it out.
Ok everything works now!
As it turns out this was a bug in the Brutalist Font and the most recent version shows up as a monospaced font. I am very sorry for the noise.
Same problem. However my font is not patched nerd font, but still can not found. The question is
LXGW WenKai
can not be found in fixed-width collection in font-book, but however it worked quiet well in previous versions of kitty.f[0.033] Cannot use both macos_titlebar_color and background_opacity [0.154] The font LXGW WenKai Mono Light was not found, falling back to Menlo [0.154] The font LXGW WenKai Mono Bold was not found, falling back to Menlo [0.192] Cell height calculation: [0.192] line height from line origins: 40.000000 [0.192] line bounds: origin-y: -8.018555 height: 39.578125 [0.192] line bounds-no-leading: origin-y: -8.018555 height: 39.578125 [0.192] bounds metrics: ascent: 31.559570 [0.192] line metrics: ascent: 31.559570 descent: 8.018555 leading: 0.000000 [0.192] font metrics: ascent: 31.559570 descent: 8.018555 leading: 0.000000 underline_position: -2.158203 [0.192] cell_height: 40 baseline: 32 underline_position: 34 strikethrough_position: 20 [0.251] Text fonts: [0.251] Normal: Menlo-Regular: /System/Library/Fonts/Menlo.ttc [0.251] Bold: Menlo-Bold: /System/Library/Fonts/Menlo.ttc [0.251] Italic: Menlo-Italic: /System/Library/Fonts/Menlo.ttc [0.251] Bold-Italic: Menlo-BoldItalic: /System/Library/Fonts/Menlo.ttc
You can use the latest version LXGW WenKai Mono
, it is fixed-width and it works in latest kitty.
The latest version: https://github.com/lxgw/LxgwWenKai/releases/tag/v1.501
你可以使用最新版的 LXGW WenKai Mono
字体, 而不是 LXGW WenKai
, LXGW WenKai Mono
这个是 monospace fonts 字体, 务必使用最新版(1.5)的, 其中 1.3 版本的有问题 最新版下载地址: https://github.com/lxgw/LxgwWenKai/releases/tag/v1.501
调整 post 表中 isFixedPitch 值为 1,以使等宽字体可被 macOS 正确识别;#101 , #150
font_family family='Operator Mono' style=Book
bold_font family='Operator Mono Lig' style=Book
italic_font family='LXGW WenKai Mono'
bold_italic_font family='LXGW WenKai Mono'
kitty --config NONE -o 'font_family LXGW WenKai Mono' --debug-font-fallback
$ kitty --version
kitty 0.36.4 created by Kovid Goyal
$ kitty --config NONE -o 'font_family LXGW WenKai Mono' --debug-font-fallback
[0.930] Cell height calculation:
[0.930] line height from line origins: 25.000000
[0.930] line bounds: origin-y: -5.301941 height: 25.717804
[0.930] line bounds-no-leading: origin-y: -5.301941 height: 25.717804
[0.930] bounds metrics: ascent: 20.415863
[0.930] line metrics: ascent: 20.415863 descent: 5.301941 leading: 0.000000
[0.930] font metrics: ascent: 20.415863 descent: 5.301941 leading: 0.000000 underline_position: -3.850000
[0.930] cell_height: 25 baseline: 20 underline_position: 24 strikethrough_position: 13
[1.135] Text fonts:
[1.135] Normal: LXGWWenKaiMono-Regular: /Users/yc/Library/Fonts/LXGWWenKaiMono-Regular.ttf
Features: ()
[1.135] Bold: LXGWWenKaiMono-Medium: /Users/yc/Library/Fonts/LXGWWenKaiMono-Medium.ttf
Features: ()
[1.135] Italic: LXGWWenKaiMono-Regular: /Users/yc/Library/Fonts/LXGWWenKaiMono-Regular.ttf
Features: ()
[1.135] Bold-Italic: LXGWWenKaiMono-Medium: /Users/yc/Library/Fonts/LXGWWenKaiMono-Medium.ttf
Features: ()
2024-10-21 10:39:29.543 kitty[31227:188417] +[IMKClient subclass]: chose IMKClient_Legacy
2024-10-21 10:39:29.589 kitty[31227:188417] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
Describe the bug I use Fira Code Nerd Font. I have this installed with Homebrew. Never had any issues. Recently Kitty is unable to find this font and falls back to Menlo.
The font is installed and other terminals can use it.
Environment details