gum
gum copied to clipboard
:lady_beetle: Minor bug > misalignment issue on gum style with emojis
When playing with the following code :
clear
gum style \
--foreground 212 --border-foreground 212 --border double \
--align center --width 50 --margin "1 2" --padding "2 4" \
'📦 Colis-nc 📦' 'Suivre son colis avec RapidAPI et httpie'
I felt on a minor alignment bug (probably due to emoji) :
I'm afraid this might be something we're not able to solve. Calculating emoji widths is to a certain degree guesswork, as we don't know
- the font your terminal is using
- how your terminal's cell rendering behaves with that specific font
As an example, this is how it looks on my system (Konsole):
Curious now tho: which terminal / platform are you experiencing this with?
Calculating emoji widths is to a certain degree guesswork,
Indeed :sweat_smile:
:point_right: Looks perfectly clean on my local terminal too :
I could produce the bug on Killercoda :+1:
This issue should probably tagged as a wontfix
:thinking:
Thanks @adriens for opening this issue! We should have a solution for this (better guess work in the future).