diff options
| author | yctct <yctct@yctct.com> | 2025-11-05 11:16:40 +0100 |
|---|---|---|
| committer | yctct <yctct@yctct.com> | 2025-11-05 11:19:23 +0100 |
| commit | fd65f59dbf14b00b4f6e2b9b5b26fa39f89256e1 (patch) | |
| tree | ad4929947a282980f888401ada2d4eaaf0645db8 | |
| parent | 98610fcd37f655d44586323dc86c1d013c2798ce (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
