Re: [dev] [st] UTF-8 not working

From: NRK <>
Date: Thu, 21 Apr 2022 01:32:29 +0600

On Wed, Apr 20, 2022 at 08:46:46AM -0500, Robert Winkler wrote:
> I had to remove color emojis due to crashes of my email client aerc in
> st, as advised in this mailing list.

I think it's better to reject color emojies in ST rather than removing
them system-wide. The FAQ already mentions how to do it.

diff --git a/x.c b/x.c
index f70e3fb..6e94f76 100644
--- a/x.c
+++ b/x.c
_AT_@ -1015,6 +1015,7 @@ xloadfonts(const char *fontstr, double fontsize)
                 defaultfontsize = usedfontsize;
+ FcPatternAddBool(pattern, FC_COLOR, FcFalse);

         if (xloadfont(&dc.font, pattern))
                 die("can't open font %s\n", fontstr);

And on a sidenote, I support not adding such workaround in mainline ST.
It's an XFT issue which should've been fixed long ago. A merge request
fixing this exists for 2 years now [0].

The thread suggests that the patch isn't perfect, but it's certainly
better than crashing the application as it does right now.


Received on Wed Apr 20 2022 - 21:32:29 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 20 2022 - 21:36:08 CEST