siduck / st

snazzy terminal (suckless + beautiful)
MIT License
604 stars 94 forks source link

[BUG] Xrdb-merge breaks emojis #54

Open orhnk opened 1 year ago

orhnk commented 1 year ago

Here is a quick DEMO:

https://github.com/siduck/st/assets/101834410/fcbe7332-4fe2-4e8e-b453-518ba71887e9

Why this is important?

I manipulate the terminal padding whenever I enter Neovim. Which requires a xrdb-merge ~/.Xresources


```x Xft.antialias: 1 Xft.hinting: 1 Xft.autohint: 0 Xft.hintstyle: hintslight Xft.rgba: rgb Xft.lcdfilter: lcddefault ! window padding st.borderpx: 20 !-- values between 0.1 - 1.0 --! st.alpha: 1.0 #define fonts JetBrainsMono Nerd Font :pixelsize=15:antialias=true:autohint=true, \ JoyPixels:style:Regular, \ ! Symbola:style:Regular, \ ! Noto Color Emoji, \ *.font: fonts #define base00 #282828 #define base01 #3c3836 #define base02 #504945 #define base03 #665c54 #define base04 #bdae93 #define base05 #d5c4a1 #define base06 #ebdbb2 #define base07 #fbf1c7 #define base08 #fb4934 #define base09 #fe8019 #define base0A #fabd2f #define base0B #b8bb26 #define base0C #8ec07c #define base0D #83a598 #define base0E #d3869b #define base0F #d65d0e *.foreground: base05 #ifdef background_opacity *.background: [background_opacity]base00 #else *.background: base00 #endif *.cursorColor: base05 *color0: base00 *color1: base08 *color2: base0B *color3: base0A *color4: base0D *color5: base0E *color6: base0C *color7: base05 *color8: base03 *color9: base08 *color10: base0B *color11: base0A *color12: base0D *color13: base0E *color14: base0C *color15: base07 ! just remove this if you dont use my tabbed tabbed.selfgcolor: #d6d8eb tabbed.selbgcolor: #1e222a tabbed.normfgcolor: #9294a8 tabbed.normbgcolor: #282c34 ```
orhnk commented 1 year ago

Eureka!!!

@siduck I found an insane behavior on coincidence:

https://github.com/siduck/st/assets/101834410/e50fab34-28c7-4fd9-814b-ffa596a81ccc

siduck commented 11 months ago

i had no idea my st build supported emojis, i dont remember a patch for it

orhnk commented 11 months ago

14

19

are about this, but The solutions I tried didn't work.

Maybe I just don't know what should I do with libxft-bgra other than installing it

siduck commented 11 months ago

just dont use emojis in st! issue solved

orhnk commented 11 months ago

But can you explain why It is actually working?

(M-g key)

siduck commented 11 months ago

But can you explain why It is actually working?

(M-g key)

no idea, before we needed libxft-bgra instead of libxft package, but i'm assuming bgra PR stuff has been merged into libxft repo :thinking:

siduck commented 11 months ago

I was right https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/12