KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

Certain unicode characters not displaying

Open cdavoren opened this issue 4 years ago • 6 comments

KiTTY is not displaying (I think?) certain unicode characters that are definitely present in the selected display font. I am encountering this problem when attempting to set up powerline for tmux.

As an example, please see the attached screenshot where the unicode symbol 0x24DB is displaying as a box/question mark when it should display as a circled lowercase 'L'. This is from the tmux-powerline/segments/lan_ip.sh. The issue persists not just in vim, but also when tmux itself is attempting to display the symbol.

The font is Fira Code, which certainly includes this glyph; it displays in word processors, for instance.

Is there a setting I should be using?

I am using KiTTY portable 0.73.2.16

KiTTY Unicode Problem

cdavoren avatar May 30 '20 22:05 cdavoren

I should add that actually I see that vanilla Fira Code does not contain this glyph; however I am using a patched version of Fira Code (from Nerd Fonts) and the problem persists.

cdavoren avatar May 31 '20 00:05 cdavoren

It also exists in puTTY itself just as MobaXterm (which is also forked from puTTY) and they have similar issues. Some additional information in this issue: https://github.com/romkatv/powerlevel10k/issues/674

I so so so wish they figure this out because these modern fancy way of using fonts is awesome, it is just very disappointing that it doesn't work in puTTY with siblings. Perhaps this is something KiTTY coders could figure out? I'd be eternally grateful!

ahnberg avatar Sep 30 '20 22:09 ahnberg

Tested on my PC.
The same font Caskaydia Cove Nerd Font will work 100% on Windows Terminal.
On Kitty will not show some icons.
For Example:
Clip Ico will show on both, type: echo -e "\uf64e".
Folder Ico will show only in Windows Terminal, type: echo -e "\uf115"

You can download the Nerd Font here: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip

Ico

RomelSan avatar Dec 14 '20 21:12 RomelSan

@cyd01 The bug is finally fixed in putty (development branch) It will work fine for fonts (1 character wide only) or using monospace fonts (with nerdfonts it works) In the screenshot i am using nerdfont "hack" font. Fixedbug

RomelSan avatar Feb 16 '21 01:02 RomelSan

And now finally in the release of puTTY 0.75:

"Bug fixes in this release include: The terminal was unable to display Unicode characters in the range U+F000 to U+F1FF (part of the private-use area)."

ahnberg avatar May 08 '21 16:05 ahnberg

Until kitty updates to 0.75, you can manually apply the fix and rebuild kitty 0.74 from source (438c980cf11d990c68339743fe03c66116672339)

Patch 20d1c47484dc9ee330abea41b1fd345bce2e96d1 might also be worth applying for Unicode 10-13 support.

You can apply the patches like so:

  1. In the PuTTY repo, run git format-patch -1 438c980cf11d990c68339743fe03c66116672339, which will create a file named 0001-Move-CSET_OEMCP-and-CSET_ACP-into-Unicode-surrogate-.patch
  2. In the KiTTY repo, run git am -3 --directory 0.74_My_PuTTY /path/to/0001-Move-CSET_OEMCP-and-CSET_ACP-into-Unicode-surrogate-.patch
  3. Run git log and confirm that the patch was applied successfully

notpeelz avatar Oct 16 '21 09:10 notpeelz

Issue closed due to inactivity

cyd01 avatar May 23 '23 18:05 cyd01