st.c | 5 +---- diff --git a/st.c b/st.c index 6736464f7ecc2819cc9c22622149eb6ef6701c91..2594c6506c3d221626490e59605724a020d92c43 100644 --- a/st.c +++ b/st.c @@ -3279,7 +3279,7 @@ FcPattern *match; FcResult result; XGlyphInfo extents; - match = FcFontMatch(NULL, pattern, &result); + match = XftFontMatch(xw.dpy, xw.scr, pattern, &result); if (!match) return 1; @@ -3344,9 +3344,6 @@ usedfontsize = 12; } defaultfontsize = usedfontsize; } - - FcConfigSubstitute(0, pattern, FcMatchPattern); - FcDefaultSubstitute(pattern); if (xloadfont(&dc.font, pattern)) die("st: can't open font %s\n", fontstr);