maple-font icon indicating copy to clipboard operation
maple-font copied to clipboard

hashtag ligature (##) with problems in kitty terminal

Open Ordeeper opened this issue 2 years ago • 30 comments

hashtag ligature (##) with problems in kitty terminal

OS: Arch Shell: fish WM: i3 Terminal: tmux

Example in neovim with kitty

image

Example in kitty

image

Example in vscodium

image

NOTE: I also tried without tmux

Ordeeper avatar Nov 16 '23 12:11 Ordeeper

does ====== ligature in Fira Code rendered correctly?

technically they are rendered in same way

subframe7536 avatar Nov 16 '23 12:11 subframe7536

Ye, it's rendered correctly

Fira Code

image

Maple Mono

image

Ordeeper avatar Nov 17 '23 13:11 Ordeeper

have no idea how to deal with it 🥲

subframe7536 avatar Nov 17 '23 13:11 subframe7536

When I have time, I’ll take a look

Ordeeper avatar Nov 17 '23 14:11 Ordeeper

Not only # has this problem, but there is also this problem in btop image

Cyberczy avatar Dec 28 '23 17:12 Cyberczy

can you test if V7-beta2 fix this issue?

subframe7536 avatar Feb 19 '24 07:02 subframe7536

can you test if V7-beta2 fix this issue?

I cant use kitty +list-fonts --psnames | grep Maple to find MapleMono-VF, But can be found using fc-list | grep MapleMono-VF image

Cyberczy avatar Feb 19 '24 08:02 Cyberczy

Oh, weird things. I have little experience about kitty.

Maybe some issues with width or monospace flags

subframe7536 avatar Feb 19 '24 09:02 subframe7536

updated vf.zip, it should be correctly recognized.

can you also test if italic lll with "calt" correctly rendered?

subframe7536 avatar Feb 20 '24 13:02 subframe7536

I'm here to test now lol

Cyberczy avatar Feb 20 '24 14:02 Cyberczy

Seems like there's still a bit of a size issue image

Cyberczy avatar Feb 20 '24 14:02 Cyberczy

lll have no issues image

Cyberczy avatar Feb 20 '24 14:02 Cyberczy

both are not solved... cannot figure out why

subframe7536 avatar Feb 20 '24 14:02 subframe7536

lll have no issues image

Sorry, seems like there's still a bit of a size issue image

Cyberczy avatar Feb 20 '24 14:02 Cyberczy

both are not solved... cannot figure out why

Thanks for the great work here! The issue may be resolved quickly.

Cyberczy avatar Feb 20 '24 14:02 Cyberczy

So, if there is no enough space to render, the font size will be decreased.

It seems that it is inevitable for l related ligatures, but ### can be solved

subframe7536 avatar Feb 22 '24 03:02 subframe7536

updated MapleMono-Italic[wght]-VF.zip, support both lll and ###

subframe7536 avatar Feb 23 '24 16:02 subframe7536

I will test it tomorrow

Cyberczy avatar Feb 23 '24 16:02 Cyberczy

updated MapleMono-Italic[wght]-VF.zip, support both lll and ###

It finally took effect lol image

Cyberczy avatar Feb 24 '24 07:02 Cyberczy

@subframe7536 Congratulations and happy Lantern Festival

Cyberczy avatar Feb 24 '24 07:02 Cyberczy

Thanks, happy Lantern Festival!

However, it seems that the ### ligature is lost...

subframe7536 avatar Feb 24 '24 07:02 subframe7536

It seems to be, but at least we already know what the problem is, dont we?

Cyberczy avatar Feb 24 '24 07:02 Cyberczy

However, it seems that the ### ligature is lost...

After tonight's research, based on my technical level, I believe this is due to the weird font kerning of kitty

subframe7536 avatar Feb 24 '24 15:02 subframe7536

I have tested the latest version of Kitty using the releases version Maple Mono SC NF, and changing the font kerning of Kitty, but the problem still persists.

# ${HOME}/.config/kitty/kitty.conf

font_family  Maple Mono SC NF

# I have tested in -4px..+4px, 80%..120%
modify_font cell_width +1px

# I have tested in -2px..+2px
modify_font cell_height +1px

And, there is a configuration of kitty font is font_feature, but I don't know how to config it for maple-font.

ErrorPower2001 avatar Feb 27 '24 01:02 ErrorPower2001

You should test v7-beta6. Fixes haven't be published in stable release

subframe7536 avatar Feb 27 '24 01:02 subframe7536

The v6 font also has this issue.

image

Fr4nk1inCs avatar May 16 '24 22:05 Fr4nk1inCs

The v6 font also has this issue.

image

Try v7-beta

Cyberczy avatar May 17 '24 00:05 Cyberczy

Seems v7-beta fixes the issue.

image

Fr4nk1inCs avatar May 21 '24 06:05 Fr4nk1inCs

And, there is a configuration of kitty font is font_feature, but I don't know how to config it for maple-font.

@ErrorPower2001 Like this:

font_features MapleMono-NF-CN-ExtraLightItalic -zero +cv01 -cv02 +cv03 -cv04 -cv99 -ss01

Fr4nk1inCs avatar May 21 '24 06:05 Fr4nk1inCs

@Fr4nk1inCs Where can I find the v7-beta?

Nevermind, found them.

K4R7IK avatar Jun 09 '24 16:06 K4R7IK