Adding use XftFontMatch patch

This commit is contained in:
Bakkeby 2022-08-28 21:05:55 +02:00
parent cc36f7c256
commit 2906447fef
3 changed files with 28 additions and 4 deletions

View file

@ -373,6 +373,20 @@
*/
#define UNIVERSCROLL_PATCH 0
/* Use XftFontMatch in place of FcFontMatch.
*
* XftFontMatch calls XftDefaultSubstitute which configures various match properties according
* to the user's configured Xft defaults (xrdb) as well as according to the current display and
* screen. Most importantly, the screen DPI is computed [1]. Without this, st uses a "default"
* DPI of 75 [2].
*
* [1]: https://cgit.freedesktop.org/xorg/lib/libXft/tree/src/xftdpy.c?id=libXft-2.3.2#n535
* [2]: https://cgit.freedesktop.org/fontconfig/tree/src/fcdefault.c?id=2.11.1#n255
*
* https://git.suckless.org/st/commit/528241aa3835e2f1f052abeeaf891737712955a0.html
*/
#define USE_XFTFONTMATCH_PATCH 0
/* Vertically center lines in the space available if you have set a larger chscale in config.h
* https://st.suckless.org/patches/vertcenter/
*/