summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2025-11-05 11:16:40 +0100
committeryctct <yctct@yctct.com>2025-11-05 11:19:23 +0100
commitfd65f59dbf14b00b4f6e2b9b5b26fa39f89256e1 (patch)
treead4929947a282980f888401ada2d4eaaf0645db8
parent98610fcd37f655d44586323dc86c1d013c2798ce (diff)
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
-rw-r--r--x.c2
1 files changed, 1 insertions, 1 deletions
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);