subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.41k stars 62 forks source link

hashtag ligature (##) with problems in kitty terminal #141

Open Ordeeper opened 9 months ago

Ordeeper commented 9 months ago

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

subframe7536 commented 9 months ago

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

technically they are rendered in same way

Ordeeper commented 9 months ago

Ye, it's rendered correctly

Fira Code

image

Maple Mono

image

subframe7536 commented 9 months ago

have no idea how to deal with it 🥲

Ordeeper commented 9 months ago

When I have time, I’ll take a look

Cyberczy commented 8 months ago

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

subframe7536 commented 6 months ago

can you test if V7-beta2 fix this issue?

Cyberczy commented 6 months ago

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

subframe7536 commented 6 months ago

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

Maybe some issues with width or monospace flags

subframe7536 commented 6 months ago

updated vf.zip, it should be correctly recognized.

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

Cyberczy commented 6 months ago

I'm here to test now lol

Cyberczy commented 6 months ago

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

Cyberczy commented 6 months ago

lll have no issues image

subframe7536 commented 6 months ago

both are not solved... cannot figure out why

Cyberczy commented 6 months ago

lll have no issues image

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

Cyberczy commented 6 months ago

both are not solved... cannot figure out why

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

subframe7536 commented 6 months ago

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 commented 6 months ago

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

Cyberczy commented 6 months ago

I will test it tomorrow

Cyberczy commented 6 months ago

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

It finally took effect lol image

Cyberczy commented 6 months ago

@subframe7536 Congratulations and happy Lantern Festival

subframe7536 commented 6 months ago

Thanks, happy Lantern Festival!

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

Cyberczy commented 6 months ago

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

subframe7536 commented 6 months ago

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

ErrorPower2001 commented 6 months ago

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.

subframe7536 commented 6 months ago

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

Fr4nk1inCs commented 3 months ago

The v6 font also has this issue.

image

Cyberczy commented 3 months ago

The v6 font also has this issue.

image

Try v7-beta

Fr4nk1inCs commented 3 months ago

Seems v7-beta fixes the issue.

image

Fr4nk1inCs commented 3 months ago

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
K4R7IK commented 2 months ago

@Fr4nk1inCs Where can I find the v7-beta?

Nevermind, found them.