From fd65f59dbf14b00b4f6e2b9b5b26fa39f89256e1 Mon Sep 17 00:00:00 2001 From: yctct Date: Wed, 5 Nov 2025 11:16:40 +0100 Subject: Mask color font so emojis don't make st crash From st's README: > Xft makes st crash when rendering color emojis I documented the modification to x.c there: https://yctct.com/st-emoji-crash --- x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x.c b/x.c index d73152b..ad8bd6d 100644 --- a/x.c +++ b/x.c @@ -1331,7 +1331,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x FcCharSetAddChar(fccharset, rune); FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); - FcPatternAddBool(fcpattern, FC_SCALABLE, 1); + FcPatternAddBool(fcpattern, FC_COLOR, FcFalse); FcConfigSubstitute(0, fcpattern, FcMatchPattern); -- cgit v1.2.3