KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

Double-width glyph issues.

Open ljramalho opened this issue 3 years ago • 0 comments

From the original thread: https://github.com/cyd01/KiTTY/issues/341

Hello. I'm back to this issue.

While the KiTTY option, "Window > Translation, "Treat CJK ambiguous characters as wide", really allows the handling of double-width glyphs, the feature is far from perfect. This must be a PuTTY / KiTTY issue since I cannot observe none of the below described problems in other windows ssh terminal.

The problems are...

  1. For some font sizes some double width glyphs still don't print fully. This is the case of the "folder" glyph present in "Hack nerd font". The result is better than that showing when the option "Treat CJK ambiguous characters as wide" is not checked, but still trims the right corner, visible when font size 11 is selected, (not so much visible when use font size 10).

  2. When the command "lsd" (https://github.com/Peltoche/lsd) is used in KiTTY with option "Treat CJK ambiguous characters as wide" activated, does produce wrapped lines with some terminal columns length. Somehow when double width glyphs are printed, KiTTY fails to correctly calculate the space between columns. However the command "ls" works perfectly.

image

  1. Yet the command "mc" (Midnight Command) shows strange artifacts; a) lines are shown dashed, b) irregular panel size, that change size when move the cursor bar, c) strange numbers are shown in front of each file / folder entry. This can be mitigated by calling Midnight Command with ascii option, that is (mc -ca), that change graph glyphs to ascii characters, yet even so, it is not perfect mainly when activate "mc" menus.

image This is Midnight Command called with graph glyphs when KiTTY "Treat CJK ambiguous characters as wide" is activated.

This is mc without that option activated. image

Thanks you.

Originally posted by @ljramalho in https://github.com/cyd01/KiTTY/issues/341#issuecomment-1110365975

ljramalho avatar Apr 27 '22 00:04 ljramalho