Skip to content
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

Wide characters are cut off #27

Open
cherryman opened this issue May 7, 2017 · 8 comments
Open

Wide characters are cut off #27

cherryman opened this issue May 7, 2017 · 8 comments

Comments

@cherryman
Copy link

2017-05-07-111957_467x206_scrot

Any way to fix this?

@dab
Copy link

dab commented Nov 29, 2018

any updates on this issue?
thanks.

@actionless
Copy link
Collaborator

your issue report could be improved by providing font used, text string and expected result (in which terminal it works as expected)

@mustaqimM
Copy link

I also face the same problem, though I only use a unicode glyph in one place:
image
If I add 2 spaces to the place I'm defining it:
zsh export ZSH_PLUGINS_ALIAS_TIPS_TEXT=$'\033[01;33m💡 ', then it outputs correctly.

image

On kitty it shows as:
image

And on alacritty:
image

It occurs with any font. With or without escape chars.

@actionless
Copy link
Collaborator

actionless commented Jul 12, 2019

weird, i can't reproduce this:

echo _💡_

2019-07-12--1562941679_397x123_scrot

i recommend you trying with more different fonts, mb there is some correlation between the chosen font and reproducibility of this problem

@mustaqimM
Copy link

hmm, I've tried:

Iosevka
DejaVu Sans Mono
Noto Sans Mono
Liberation Mono
FreeMono
Monofur Nerd Font
Nimbus Mono L

And all require two spaces after the glyph to render correctly. What emoji font are you using? I have noto-fonts-emoji-20180810 & twemoji

image

@actionless
Copy link
Collaborator

  <family>monospace</family>
  <prefer>
   <family>Fantasque Sans Mono</family>
   <family>Emoji One Color</family>
</prefer>

@actionless
Copy link
Collaborator

but with different monospace fonts it also works, so i guess the problem is with emoji font, what it's not setting what chars should be double-width:

2019-07-12--1562951740_470x168_scrot

@mustaqimM
Copy link

I think there are 2 problems here:
noto-fonts-emoji requires 2 spaces. twemoji(the successor to Emoji One) needs 1 space but only on st.

On alacritty and kitty, it shows correctly without a space. (I tried it with twemoji and font-symbola). But st needs the space. Presumably because it's placing a two cell width char in a single cell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants