aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/st.c b/st.c
index 6736464..2594c65 100644
--- a/st.c
+++ b/st.c
@@ -3279,7 +3279,7 @@ xloadfont(Font *f, FcPattern *pattern)
3279 FcResult result; 3279 FcResult result;
3280 XGlyphInfo extents; 3280 XGlyphInfo extents;
3281 3281
3282 match = FcFontMatch(NULL, pattern, &result); 3282 match = XftFontMatch(xw.dpy, xw.scr, pattern, &result);
3283 if (!match) 3283 if (!match)
3284 return 1; 3284 return 1;
3285 3285
@@ -3345,9 +3345,6 @@ xloadfonts(char *fontstr, double fontsize)
3345 defaultfontsize = usedfontsize; 3345 defaultfontsize = usedfontsize;
3346 } 3346 }
3347 3347
3348 FcConfigSubstitute(0, pattern, FcMatchPattern);
3349 FcDefaultSubstitute(pattern);
3350
3351 if (xloadfont(&dc.font, pattern)) 3348 if (xloadfont(&dc.font, pattern))
3352 die("st: can't open font %s\n", fontstr); 3349 die("st: can't open font %s\n", fontstr);
3353 3350