diff --git a/st.c b/st.c index fc9ed70..6cb5714 100644 --- a/st.c +++ b/st.c @@ -2471,7 +2471,8 @@ int xloadfont(Font *f, FcPattern *pattern) { FcPattern *match; FcResult result; - + FcValue v; + match = FcFontMatch(NULL, pattern, &result); if(!match) return 1; @@ -2481,6 +2482,9 @@ xloadfont(Font *f, FcPattern *pattern) { return 1; } + v.type = FcTypeBool; + v.u.b = false; + FcPatternAdd(match, FC_ANTIALIAS, v, false); if(!(f->match = XftFontOpenPattern(xw.dpy, match))) { FcPatternDestroy(match); return 1;