Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Add comment about tabspaces.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
6736464
..
2594c65
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3279,7
+3279,7
@@
xloadfont(Font *f, FcPattern *pattern)
FcResult result;
XGlyphInfo extents;
FcResult result;
XGlyphInfo extents;
- match =
FcFontMatch(NULL
, pattern, &result);
+ match =
XftFontMatch(xw.dpy, xw.scr
, pattern, &result);
if (!match)
return 1;
if (!match)
return 1;
@@
-3345,9
+3345,6
@@
xloadfonts(char *fontstr, double fontsize)
defaultfontsize = usedfontsize;
}
defaultfontsize = usedfontsize;
}
- FcConfigSubstitute(0, pattern, FcMatchPattern);
- FcDefaultSubstitute(pattern);
-
if (xloadfont(&dc.font, pattern))
die("st: can't open font %s\n", fontstr);
if (xloadfont(&dc.font, pattern))
die("st: can't open font %s\n", fontstr);