New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode char render too small #2850
Comments
That's a bug in iTerm, it appers to be rendering it as an emoji in two |
Aha , but it looks like good right? I check the alacritty, its also same as iterm2. So Is it possible that kitty render it like alacritty and iterm2? |
Looks good is subjective and if you want kitty to render it like that, use the adjust option, that's why it is provided. |
oh sorry, responding to wrong bug report |
Its supposed to be rendered in a single cell, rendering it in two cells will actually break things, looking good is less important than actually being standard compliant. What can be done is implementing a hack similar to what kitty does for PUA charcters, where if the character is followed by a space, kitty uses two cells to render it, while the character itself still occupies one cell. However this is a hack, and I am not very keen to implement it. |
First of all, I respect your decision,I check the this behavior in alacritty iterm2 default terminal in mac. there are has same behavior. However, kitty is different from them, so it is a good decision to align with them? |
Sorry but X terminals doing the wrong thing is not an argument for kitty joining them. |
Hmm. ok. Is it reasonable to set an option to enable this render hack? |
I found this unicode char code https://unicode-table.com/en/sets/arabic-numerals/ |
Again X terminals doing something does not make it right. You want to argue its a bug show me some standard that says those characters should be rendered in two cells. In fact on my system even the system libc implementation of wcwidth says the width of U+2776 is 1 |
Yeha it looks bigger in gnome-terminal because gnome-terminal is bleeding it into the next cell. Try this printf '\u2776a' see how the circle overlaps the a. That is a rendering bug, in kitty, the circle will be scaled down to fit and not overlap. |
Exactly, rendering bug. |
Perhaps this is the design of these terminals in order to better display these numbers unicode? Maybe we can collect everyone's opinions? |
No its not design. It's a bug. A proper design would be to only overflow when the next character is a space. This is the solution I refered to in my previous post. And its a five line patch to implemet it in kitty. |
Aha ok . I will rewrite my plugin to display vim buffer number. |
Describe the bug
I used some unicode chars ❶❷❸❹❺❻❼❽❾❿,Iterm2 render it normal,but kitty render it too small.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment details
OS: Name and version of operating system(s)
Additional context
Can reproduce with
kitty --config NONE
The text was updated successfully, but these errors were encountered: